Method: ShowFor::Association#attribute
- Defined in:
- lib/show_for/association.rb
#attribute(attribute_name, options = {}, &block) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/show_for/association.rb', line 3 def attribute(attribute_name, ={}, &block) if association_name = .delete(:in) [:using] = attribute_name association(association_name, , &block) else super end end |