Class: ScavengerHunt::ApplicationRecord
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ScavengerHunt::ApplicationRecord
show all
- Defined in:
- lib/scavenger_hunt/app/models/scavenger_hunt/application_record.rb
Class Method Summary
collapse
Class Method Details
.hook(model, *callbacks, &block) ⇒ Object
5
6
7
8
9
10
11
|
# File 'lib/scavenger_hunt/app/models/scavenger_hunt/application_record.rb', line 5
def self.hook(model, *callbacks, &block)
model.class_eval do
callbacks.each do |callback|
send("after_#{callback}", &block)
end
end
end
|
.position_scope(*args) ⇒ Object
13
14
15
|
# File 'lib/scavenger_hunt/app/models/scavenger_hunt/application_record.rb', line 13
def self.position_scope(*args)
self
end
|