mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-13 23:48:55 +01:00
19 lines
436 B
Ruby
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
|