Class: ActiveRecord::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/find_by_param.rb

Class Method Summary collapse

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