zamith/citygate

View on GitHub
app/models/citygate/role.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Citygate
  # @author Zamith
  class Role < ActiveRecord::Base
    attr_accessible :name
    has_many :permissions

    def self.underscored_role_names
      self.select(:name).map{|r|r.name.underscore}
    end
  end
end