lib/surrounded/access_control.rb in surrounded-0.9.1 vs lib/surrounded/access_control.rb in surrounded-0.9.2
- old
+ new
@@ -28,10 +28,10 @@
}
end
def define_access_method(name, &block)
mod = Module.new
- mod.class_eval {
+ num = __LINE__; mod.class_eval {
define_method "disallow_#{name}?" do
begin
apply_behaviors
instance_exec(&block)
ensure
\ No newline at end of file