mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
16 lines
No EOL
401 B
Ruby
16 lines
No EOL
401 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
|
|
|
|
def active_model_serializer
|
|
DiscourseVersionCheckSerializer
|
|
end
|
|
|
|
end |