Sha256: cd810f464a2d534f5ff70f6e59139089a0bd0020412a2f243003193ae568acf6

Contents?: true

Size: 247 Bytes

Versions: 4

Compression:

Stored size: 247 Bytes

Contents

# frozen_string_literal: true

class ApplicationPolicy
  attr_accessor :user, :resource

  def self.miau(actions, meth = nil, &block)
    [actions].flatten.each { |action|
      Miau::PolicyStorage.instance.add(self, action, meth)
    }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
miau-1.0.3 lib/miau/application_policy.rb
miau-1.0.2 lib/miau/application_policy.rb
miau-1.0.1 lib/miau/application_policy.rb
miau-1.0.0 lib/miau/application_policy.rb