Class: ActiveRecord::Base
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#to_dom(*args) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/vendor/active_record.rb', line 3 def to_dom(*args) = args. display_id = new_record? ? 'new' : id [ [:prefix], self.class.name.underscore, display_id, [:suffix] ].compact.join('_') end |