Module: RailsTables::RelationAdditions
- Defined in:
- lib/rails-tables/relation_additions.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
15
16
17
18
19
20
21
|
# File 'lib/rails-tables/relation_additions.rb', line 15
def method_missing(method, *args, &block)
if self.has_datatable? method.to_s
self.klass.send(method.to_s).set_root(self)
else
super
end
end
|
Instance Method Details
#respond_to?(method, include_private = false) ⇒ Boolean
5
6
7
8
9
10
11
|
# File 'lib/rails-tables/relation_additions.rb', line 5
def respond_to?(method, include_private = false)
if self.has_datatable? method.to_s
true
else
super
end
end
|