discourse/app/models/discourse_version_check.rb
2013-07-24 21:09:18 +02:00

17 lines
No EOL
429 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
unless rails4?
def active_model_serializer
DiscourseVersionCheckSerializer
end
end
end