Module: CaptionConcern
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/generators/templates/app/models/concerns/caption_concern.rb
Instance Method Summary collapse
-
#caption ⇒ Object
You can OVERRIDE this method used in model form and search form (in belongs_to relation).
Instance Method Details
#caption ⇒ Object
You can OVERRIDE this method used in model form and search form (in belongs_to relation)
5 6 7 |
# File 'lib/generators/templates/app/models/concerns/caption_concern.rb', line 5 def caption (self["name"] || self["label"] || self["description"] || self["email"] || "##{id}") end |