Class: DisplayFor::Element::Action
- Defined in:
- lib/display_for/element/action.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#default_label, #html_options, #initialize, #label, #link_to
Constructor Details
This class inherits a constructor from DisplayFor::Element::Base
Instance Method Details
#content(resource) ⇒ Object
4 5 6 |
# File 'lib/display_for/element/action.rb', line 4 def content(resource) super || link_to(label, resource) end |