access_schema 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/lib/access_schema/assert.rb
CHANGED
data/lib/access_schema/schema.rb
CHANGED
@@ -37,7 +37,6 @@ module AccessSchema
|
|
37
37
|
private
|
38
38
|
|
39
39
|
def normalize_args(args)
|
40
|
-
#Rails.logger.debug("schema normalize args: #{args.inspect}")
|
41
40
|
|
42
41
|
options = args.last.is_a?(Hash) ? args.pop : {}
|
43
42
|
roles = args[2]
|
@@ -56,7 +55,6 @@ module AccessSchema
|
|
56
55
|
end
|
57
56
|
|
58
57
|
def check!(namespace_name, element_name, roles, options)
|
59
|
-
#Rails.logger.debug [namespace_name, element_name, roles, options].inspect
|
60
58
|
allowed = for_element(namespace_name, element_name) do |element|
|
61
59
|
element.allow?(roles) do |expectation|
|
62
60
|
check_assert(expectation, options)
|