Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/find_by_param.rb
Class Method Summary collapse
-
.find_by_param(value, args = {}) ⇒ Object
default finders these are overwritten if you use make_permalink in your model.
- .find_by_param!(value, args = {}) ⇒ Object
Class Method Details
.find_by_param(value, args = {}) ⇒ Object
default finders these are overwritten if you use make_permalink in your model
88 89 90 |
# File 'lib/find_by_param.rb', line 88 def self.find_by_param(value,args={}) find_by_id(value,args) end |
.find_by_param!(value, args = {}) ⇒ Object
91 92 93 |
# File 'lib/find_by_param.rb', line 91 def self.find_by_param!(value,args={}) find(value,args) end |