Sha256: a40184f441e09407ddc22c767100fee9e4e96d3ac4cc5fb2b76277f05c474431
Contents?: true
Size: 313 Bytes
Versions: 1
Compression:
Stored size: 313 Bytes
Contents
module Abilities module ActionView module Base extend ActiveSupport::Concern %w(can? cannot?).each do |name| define_method name do |action, subject| Abilities.send name, instance_exec(&Abilities.configuration.fetcher), action, subject end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
abilities-0.1.2 | lib/abilities/action_view/base.rb |