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