2013-02-20 04:16:50 +08:00
|
|
|
class DiscourseVersionCheck
|
2013-07-22 00:50:01 +08:00
|
|
|
if rails4?
|
|
|
|
include ActiveModel::Model
|
|
|
|
else
|
|
|
|
include ActiveAttr::Attributes
|
|
|
|
include ActiveAttr::MassAssignment
|
|
|
|
include ActiveModel::Serialization
|
|
|
|
end
|
2013-02-20 04:16:50 +08:00
|
|
|
|
2013-11-05 01:51:01 +08:00
|
|
|
attr_accessor :latest_version, :critical_updates, :installed_version, :installed_sha, :missing_versions_count, :updated_at, :version_check_pending
|
2013-02-20 04:16:50 +08:00
|
|
|
|
2013-07-24 02:42:52 +08:00
|
|
|
unless rails4?
|
|
|
|
def active_model_serializer
|
|
|
|
DiscourseVersionCheckSerializer
|
|
|
|
end
|
2013-02-20 04:16:50 +08:00
|
|
|
end
|
|
|
|
end
|