Module: HasElo::Eloable::ClassMethods

Defined in:
lib/has_elo/eloable.rb

Instance Method Summary collapse

Instance Method Details

#has_eloObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/has_elo/eloable.rb', line 6

def has_elo
  class_eval do
    has_one :elo, as: :eloable, class_name: 'HasElo::Elo', dependent: :delete_all
  end

  after_create :init_elo

  def init_elo

  end
end

#init_eloObject



13
14
15
# File 'lib/has_elo/eloable.rb', line 13

def init_elo

end