Class: HoboFields::LifecycleState
- Inherits:
-
String
- Object
- String
- HoboFields::LifecycleState
- Defined in:
- lib/hobo_fields/lifecycle_state.rb
Constant Summary collapse
- COLUMN_TYPE =
:string
Class Attribute Summary collapse
-
.table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
Class Attribute Details
.table_name ⇒ Object
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 |