module Scoreable::Generator::InstanceMethods
Public Instance Methods
itself()
click to toggle source
# File lib/scoreable/generator/active_record.rb, line 71 def itself self end
log_score(score,action,receiver)
click to toggle source
# File lib/scoreable/generator/active_record.rb, line 75 def log_score(score,action,receiver) receiver = self.send receiver if [String,Symbol].include? receiver.class receiver.send(Scoreable.table_name).create! action: action, :"#{Scoreable.score_term}" => score, :"#{Scoreable.score_term}_generator" => self end
Also aliased as: log_#{Scoreable.score_term}_receiver