1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/models/concerns/stat_concern.rb
2016-03-23 18:39:41 +01:00

19 lines
436 B
Ruby

module StatConcern
extend ActiveSupport::Concern
included do
attribute :type, String
attribute :subType, String
attribute :date, String
attribute :stat, Integer
attribute :userId, Integer
attribute :gender, String
attribute :age, Integer
attribute :group, String
# has include Elasticsearch::Persistence::Model
index_name "stats"
document_type self.to_s.demodulize.underscore
end
end