Class: HoboFields::LifecycleState

Inherits:
String
  • Object
show all
Defined in:
lib/hobo_fields/lifecycle_state.rb

Constant Summary collapse

COLUMN_TYPE =
:string

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.table_nameObject

Returns the value of attribute table_name.



7
8
9
# File 'lib/hobo_fields/lifecycle_state.rb', line 7

def table_name
  @table_name
end

Instance Method Details

#to_html(xmldoctype = true) ⇒ Object



10
11
12
# File 'lib/hobo_fields/lifecycle_state.rb', line 10

def to_html(xmldoctype = true)
  I18n.t("#{self.class.table_name}.states.#{self}", :default => self)
end