discourse/app/models/discourse_version_check.rb

17 lines
429 B
Ruby
Raw Normal View History

class DiscourseVersionCheck
2013-07-21 12:50:01 -04:00
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
2013-07-23 14:42:52 -04:00
unless rails4?
def active_model_serializer
DiscourseVersionCheckSerializer
end
end
end