mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 03:42:16 +08:00
17 lines
453 B
Ruby
17 lines
453 B
Ruby
class DiscourseVersionCheck
|
|
if rails4?
|
|
include ActiveModel::Model
|
|
else
|
|
include ActiveAttr::Attributes
|
|
include ActiveAttr::MassAssignment
|
|
include ActiveModel::Serialization
|
|
end
|
|
|
|
attr_accessor :latest_version, :critical_updates, :installed_version, :installed_sha, :missing_versions_count, :updated_at, :version_check_pending
|
|
|
|
unless rails4?
|
|
def active_model_serializer
|
|
DiscourseVersionCheckSerializer
|
|
end
|
|
end
|
|
end |