2013-02-19 15:16:50 -05:00
|
|
|
class DiscourseVersionCheck
|
2013-07-21 12:50:01 -04:00
|
|
|
if rails4?
|
|
|
|
include ActiveModel::Model
|
|
|
|
else
|
|
|
|
include ActiveAttr::Attributes
|
|
|
|
include ActiveAttr::MassAssignment
|
|
|
|
include ActiveModel::Serialization
|
|
|
|
end
|
2013-02-19 15:16:50 -05:00
|
|
|
|
2013-11-04 12:51:01 -05:00
|
|
|
attr_accessor :latest_version, :critical_updates, :installed_version, :installed_sha, :missing_versions_count, :updated_at, :version_check_pending
|
2013-02-19 15:16:50 -05:00
|
|
|
|
2013-07-23 14:42:52 -04:00
|
|
|
unless rails4?
|
|
|
|
def active_model_serializer
|
|
|
|
DiscourseVersionCheckSerializer
|
|
|
|
end
|
2013-02-19 15:16:50 -05:00
|
|
|
end
|
|
|
|
end
|