Sha256: e48396ce85b27e364d496e14eb566c1c175fc8e4eaaff67f9fde0d319296054a

Contents?: true

Size: 280 Bytes

Versions: 9

Compression:

Stored size: 280 Bytes

Contents

# encoding: utf-8
module Sunrise
  module Models
    class PositionType
      def initialize(code)
        @code = code.to_sym
      end
      attr_reader :code
      
      def title
        I18n.t(@code, :scope => [:manage, :structure, :position])
      end  
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sunrise-core-0.2.2 lib/sunrise/models/position_type.rb
sunrise-core-0.2.1 lib/sunrise/models/position_type.rb
sunrise-core-0.2.0 lib/sunrise/models/position_type.rb
sunrise-core-0.1.5 lib/sunrise/models/position_type.rb
sunrise-core-0.1.4 lib/sunrise/models/position_type.rb
sunrise-core-0.1.3 lib/sunrise/models/position_type.rb
sunrise-core-0.1.2 lib/sunrise/models/position_type.rb
sunrise-core-0.1.1 lib/sunrise/models/position_type.rb
sunrise-core-0.1.0 lib/sunrise/models/position_type.rb