Sha256: 5f2e32adc71bc8c3bb96043db4eafa9d6f5d0294ee212dcb1d80315ee5fb0f7e

Contents?: true

Size: 303 Bytes

Versions: 5

Compression:

Stored size: 303 Bytes

Contents

module HoboFields
  module Types
    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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hobo_fields-1.3.0.pre14 lib/hobo_fields/types/lifecycle_state.rb
hobo_fields-1.3.0.pre13 lib/hobo_fields/types/lifecycle_state.rb
hobo_fields-1.3.0.pre12 lib/hobo_fields/types/lifecycle_state.rb
hobo_fields-1.3.0.pre11 lib/hobo_fields/types/lifecycle_state.rb
hobo_fields-1.3.0.pre10 lib/hobo_fields/types/lifecycle_state.rb