Module: Roguelytics::HasRoguelytics::ClassMethods
- Defined in:
- lib/roguelytics/has_roguelytics.rb
Instance Method Summary collapse
Instance Method Details
#has_roguelytics ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/roguelytics/has_roguelytics.rb', line 12 def has_roguelytics include Roguelytics::HasRoguelytics::LocalInstanceMethods if self.respond_to?(:after_commit) self.send(:after_commit, on: :create) do self.roguelytics_create end self.send(:after_commit, on: :update) do self.roguelytics_update end self..send(:after_commit, on: :destroy) do self.roguelytics_destroy end true end true end |