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-03-05 18:14:51 -05:00
|
|
|
attr_accessor :latest_version, :critical_updates, :installed_version, :installed_sha, :missing_versions_count
|
2013-02-19 15:16:50 -05:00
|
|
|
|
|
|
|
def active_model_serializer
|
|
|
|
DiscourseVersionCheckSerializer
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|