Class: ActiveRecord::Base

Inherits:
Object show all
Defined in:
lib/vendor/active_record.rb

Direct Known Subclasses

TypusUser

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)

  options = args.extract_options!
  display_id = new_record? ? 'new' : id

  [ options[:prefix], 
    self.class.name.underscore, 
    display_id, 
    options[:suffix] ].compact.join('_')

end