Module: PermissionSettings

Defined in:
lib/permission_settings.rb,
lib/permission_settings/verify.rb,
lib/permission_settings/patcher.rb,
lib/permission_settings/version.rb,
lib/permission_settings/configuration.rb,
lib/permission_settings/verify_instance.rb

Overview

require ‘byebug’

Defined Under Namespace

Classes: Configuration, NotFoundError, Patcher, Verify, VerifyInstance

Constant Summary collapse

VERSION =
'1.0.5'

Class Method Summary collapse

Class Method Details

.configurationObject



18
19
20
# File 'lib/permission_settings.rb', line 18

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



22
23
24
# File 'lib/permission_settings.rb', line 22

def configure
  yield(configuration)
end

.included(klass) ⇒ Object



14
15
16
# File 'lib/permission_settings.rb', line 14

def included(klass)
  PermissionSettings::Patcher.call(klass)
end