Permalink
Browse files

Collections-members controller dsl fixed

  • Loading branch information...
1 parent 34c6611 commit 497c4ea2168efcc1a7e6a34c4455325010066f8c @pyromaniac pyromaniac committed Oct 10, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/puffer/extensions/mapper31.rb
  2. +2 −2 lib/puffer/extensions/mapper32.rb
View
4 lib/puffer/extensions/mapper31.rb
@@ -63,8 +63,6 @@ def resource_scope_with_puffer resource, &block
defaults :puffer => resource_node do
resource_scope_without_puffer resource do
- block.call if block
-
member do
controller._members.each do |action|
send *action.route
@@ -77,6 +75,8 @@ def resource_scope_with_puffer resource, &block
end
get '/event/:fieldset/:field/:event(/:identifer)', :action => :event, :as => :event
end
+
+ block.call if block
end
end
else
View
4 lib/puffer/extensions/mapper32.rb
@@ -61,8 +61,6 @@ def resource_scope_with_puffer kind, resource, &block
defaults :puffer => resource_node do
resource_scope_without_puffer kind, resource do
- block.call if block
-
member do
controller._members.each do |action|
send *action.route
@@ -75,6 +73,8 @@ def resource_scope_with_puffer kind, resource, &block
end
get '/event/:fieldset/:field/:event(/:identifer)', :action => :event, :as => :event
end
+
+ block.call if block
end
end
else

0 comments on commit 497c4ea

Please sign in to comment.