Sha256: 5e24200c6e611f5f0b8cb99ed178a1b038db82547de314f48a29e3330562d5b9
Contents?: true
Size: 352 Bytes
Versions: 27
Compression:
Stored size: 352 Bytes
Contents
class Permission < ActiveRecord::Base belongs_to :group include Soapbox::Group if File.exists? "app/models/soapbox/group.rb" def self.can?(action, object) if action.class == "Array" !self.where("can in (?) and object=?", action, object).empty? else !self.where("can=? and object=?", action, object).empty? end end end
Version data entries
27 entries across 27 versions & 1 rubygems