2013-02-19 15:16:50 -05:00
|
|
|
class DiscourseVersionCheck
|
|
|
|
|
|
|
|
# include ActiveModel::Model <-- If we were using Rails 4, we could use this instead of active_attr
|
|
|
|
include ActiveAttr::Attributes
|
|
|
|
include ActiveAttr::MassAssignment
|
|
|
|
include ActiveModel::Serialization
|
|
|
|
|
2013-02-21 13:26:30 -05:00
|
|
|
attr_accessor :latest_version, :critical_updates, :installed_version, :installed_sha
|
2013-02-19 15:16:50 -05:00
|
|
|
|
|
|
|
def active_model_serializer
|
|
|
|
DiscourseVersionCheckSerializer
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|