Module: Ransack::Naming
- Included in:
- Search
- Defined in:
- lib/ransack/naming.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/ransack/naming.rb', line 4 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#model_name ⇒ Object
24 25 26 |
# File 'lib/ransack/naming.rb', line 24 def model_name self.class.model_name end |
#persisted? ⇒ Boolean
8 9 10 |
# File 'lib/ransack/naming.rb', line 8 def persisted? false end |
#to_key ⇒ Object
12 13 14 |
# File 'lib/ransack/naming.rb', line 12 def to_key nil end |
#to_model ⇒ Object
20 21 22 |
# File 'lib/ransack/naming.rb', line 20 def to_model self end |
#to_param ⇒ Object
16 17 18 |
# File 'lib/ransack/naming.rb', line 16 def to_param nil end |