Class: HoboFields::Types::LifecycleState
- Inherits:
-
String
- Object
- String
- HoboFields::Types::LifecycleState
- Defined in:
- lib/hobo_fields/types/lifecycle_state.rb
Constant Summary collapse
- COLUMN_TYPE =
:string
Class Attribute Summary collapse
-
.model_name ⇒ Object
Returns the value of attribute model_name.
Instance Method Summary collapse
Class Attribute Details
.model_name ⇒ Object
Returns the value of attribute model_name.
8 9 10 |
# File 'lib/hobo_fields/types/lifecycle_state.rb', line 8 def model_name @model_name end |
Instance Method Details
#to_html(xmldoctype = true) ⇒ Object
11 12 13 |
# File 'lib/hobo_fields/types/lifecycle_state.rb', line 11 def to_html(xmldoctype = true) I18n.t("activerecord.attributes.#{self.class.model_name.underscore}.lifecycle.states.#{self}", :default => self).html_safe end |