lib/ixtlan/guard/guard_rails.rb in ixtlan-guard-0.8.0 vs lib/ixtlan/guard/guard_rails.rb in ixtlan-guard-0.8.1
- old
+ new
@@ -30,10 +30,10 @@
end
else
@block
end
else
- if base.respond_to?(@method) || base.private_methods.include?(@method.to_s)
+ if base.respond_to?(@method) || base.private_methods.include?(@method.to_s) || base.private_methods.include?(@method.to_sym)
if reference
Proc.new do |groups|
base.send(@method, groups, reference)
end
elsif @reference