Sha256: 30f9e13b246e444b89a99d49dfc2abd9221c00fa54ebbc8176162e4f9b30eb6f

Contents?: true

Size: 210 Bytes

Versions: 7

Compression:

Stored size: 210 Bytes

Contents

class Role < ActiveRecord::Base
  belongs_to :user
  validates_presence_of :user, :role

  def self.roles
    return {
      t(".administrator") => "admin",
      t(".moderator") => "moderator"
    }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
awesome_translations-0.0.12 spec/dummy/app/models/role.rb
awesome_translations-0.0.10 spec/dummy/app/models/role.rb
awesome_translations-0.0.9 spec/dummy/app/models/role.rb
awesome_translations-0.0.8 spec/dummy/app/models/role.rb
awesome_translations-0.0.7 spec/dummy/app/models/role.rb
awesome_translations-0.0.6 spec/dummy/app/models/role.rb
awesome_translations-0.0.5 spec/dummy/app/models/role.rb