mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
14 lines
No EOL
442 B
Ruby
14 lines
No EOL
442 B
Ruby
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
|
|
|
|
attr_accessor :latest_version, :critical_updates, :installed_version, :installed_sha, :missing_versions_count, :updated_at
|
|
|
|
def active_model_serializer
|
|
DiscourseVersionCheckSerializer
|
|
end
|
|
|
|
end |