lib/crumbs/proxy.rb in crumbs-4.0.0.1 vs lib/crumbs/proxy.rb in crumbs-5.1.0
- old
+ new
@@ -1,17 +1,17 @@
module Crumbs
class Proxy
def initialize(&block)
- instance_eval &block
+ instance_eval(&block)
end
def namespace(*args, &block)
- Dsl::Namespace.new *args, &block
+ Dsl::Namespace.new(*args, &block)
end
def controller(*args, &block)
- Dsl::Controller.new *args, &block
+ Dsl::Controller.new(*args, &block)
end
def crumb(action, name=nil, &block)
Crumbs.definitions.add action, (block_given? ? block : name)
end