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-07-03 11:06:07 -04:00
|
|
|
attr_accessor :latest_version, :critical_updates, :installed_version, :installed_sha, :missing_versions_count, :updated_at
|
2013-02-19 15:16:50 -05:00
|
|
|
|
|
|
|
def active_model_serializer
|
|
|
|
DiscourseVersionCheckSerializer
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|