mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 18:43:38 +08:00
14 lines
388 B
Ruby
14 lines
388 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, :installed_version, :critical_updates
|
|
|
|
def active_model_serializer
|
|
DiscourseVersionCheckSerializer
|
|
end
|
|
|
|
end |