Sha256: 6db7475ac15f2faf1dbd996d06d7a2d2a0ffa0a5385af43a4f9569c701b522db

Contents?: true

Size: 154 Bytes

Versions: 15

Compression:

Stored size: 154 Bytes

Contents

module Permit               
  module Util
    def permit_name clazz
      clazz.demodulize.gsub(/Permit$/, '').underscore.to_sym      
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cancan-permits-0.3.12 lib/cancan-permits/permit/util.rb
cancan-permits-0.3.11 lib/cancan-permits/permit/util.rb
cancan-permits-0.3.10 lib/cancan-permits/permit/util.rb
cancan-permits-0.3.9 lib/cancan-permits/permit/util.rb
cancan-permits-0.3.8 lib/cancan-permits/permit/util.rb
cancan-permits-0.3.7 lib/cancan-permits/permit/util.rb
cancan-permits-0.3.6 lib/cancan-permits/permit/util.rb
cancan-permits-0.3.5 lib/cancan-permits/permit/util.rb
cancan-permits-0.3.4 lib/cancan-permits/permit/util.rb
cancan-permits-0.3.2 lib/cancan-permits/permit/util.rb
cancan-permits-0.3.1 lib/cancan-permits/permit/util.rb
cancan-permits-0.3.0 lib/cancan-permits/permit/util.rb
cancan-permits-0.2.9 lib/cancan-permits/permit/util.rb
cancan-permits-0.2.8 lib/cancan-permits/permit/util.rb
cancan-permits-0.2.7 lib/cancan-permits/permit/util.rb