Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Collections-members controller dsl fixed

  • Loading branch information...
commit 497c4ea2168efcc1a7e6a34c4455325010066f8c 1 parent 34c6611
@pyromaniac pyromaniac authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.