Sha256: e902f0f4be4a958f546920e0aade8ba02f898c1d7e03ad62417c53983a9fd9d0

Contents?: true

Size: 272 Bytes

Versions: 16

Compression:

Stored size: 272 Bytes

Contents

module HoboFields
  class LifecycleState < String
    
    COLUMN_TYPE = :string

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
hobofields-1.1.0 lib/hobo_fields/lifecycle_state.rb
hobofields-1.0.3 lib/hobo_fields/lifecycle_state.rb
hobofields-1.1.0.pre4 lib/hobo_fields/lifecycle_state.rb
hobofields-1.1.0.pre3 lib/hobo_fields/lifecycle_state.rb
hobofields-1.1.0.pre2 lib/hobo_fields/lifecycle_state.rb
hobofields-1.1.0.pre0 lib/hobo_fields/lifecycle_state.rb
hobofields-1.0.2 lib/hobo_fields/lifecycle_state.rb
hobofields-1.0.1 lib/hobo_fields/lifecycle_state.rb
hobofields-1.0.0 lib/hobo_fields/lifecycle_state.rb
hobofields-0.9.106 lib/hobo_fields/lifecycle_state.rb
hobofields-0.9.105 lib/hobo_fields/lifecycle_state.rb
hobofields-0.9.104 lib/hobo_fields/lifecycle_state.rb
hobofields-0.9.103 lib/hobo_fields/lifecycle_state.rb
hobofields-0.9.102 lib/hobo_fields/lifecycle_state.rb
hobofields-0.9.101 lib/hobo_fields/lifecycle_state.rb
hobofields-0.9.100 lib/hobo_fields/lifecycle_state.rb