lib/puffer/extensions/mapper.rb in puffer-0.0.14 vs lib/puffer/extensions/mapper.rb in puffer-0.0.15
- old
+ new
@@ -11,14 +11,14 @@
end
module InstanceMethods
def resource_with_puffer *resources, &block
- puffer_resource(*resources, &block) || resource_without_puffer(*resources, &block)
+ puffer_resource(*Marshal.load(Marshal.dump(resources)), &block) || resource_without_puffer(*resources, &block)
end
def resources_with_puffer *resources, &block
- puffer_resources(*resources, &block) || resources_without_puffer(*resources, &block)
+ puffer_resources(*Marshal.load(Marshal.dump(resources)), &block) || resources_without_puffer(*resources, &block)
end
def puffer_controller controller
puffer = Rails.application.routes.puffer
prefix = @scope[:module]