Sha256: c03edfa8f03696f68bd191d5a51b0a09cd380c723eae9f118babcecc6b70998b

Contents?: true

Size: 269 Bytes

Versions: 5

Compression:

Stored size: 269 Bytes

Contents

# encoding: utf-8
module Freeberry
  module Models
    class RoleType
      def initialize(code)
        @code = code.to_sym
      end
      attr_reader :code
      
      def title
        I18n.t(@code, :scope => [:manage, :role, :kind])
      end  
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freeberry-0.3.0 lib/freeberry/models/role_type.rb
freeberry-0.2.9 lib/freeberry/models/role_type.rb
freeberry-0.2.7 lib/freeberry/models/role_type.rb
freeberry-0.2.6 lib/freeberry/models/role_type.rb
freeberry-0.2.5 lib/freeberry/models/role_type.rb