Sha256: 62a690e7680147d2f2f2418ae60ac8e394ac618dd32e15820dbed3956c0736b9

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

module CanTango
  module PermissionEngine
    module Parser
      class Default < Rule
        def parse
          return default_all if target == 'all'
          parse_class target
          "#{method}(:#{action}, #{target})"
        end

        def default_all
          "#{method}(:#{action}, :all)"
        end
         
      end
    end
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cantango-0.8.0 lib/cantango/permission_engine/parser/default.rb