Sha256: 633c6eab7ccd04d2f67adb61e82973da942ea98f759212f57019b9046f3ec221

Contents?: true

Size: 267 Bytes

Versions: 4

Compression:

Stored size: 267 Bytes

Contents

# encoding: utf-8
module Sunrise
  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

4 entries across 4 versions & 1 rubygems

Version Path
sunrise-core-0.1.3 lib/sunrise/models/role_type.rb
sunrise-core-0.1.2 lib/sunrise/models/role_type.rb
sunrise-core-0.1.1 lib/sunrise/models/role_type.rb
sunrise-core-0.1.0 lib/sunrise/models/role_type.rb