Skip to content

Commit

Permalink
updating respond_to API
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Nov 20, 2008
1 parent 3b8ea1c commit 74345d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/ardes/resources_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ def find(*args, &block)
resource_specification.find ? resource_specification.find_custom(controller) : super
end

def respond_to?(method)
def respond_to?(method, include_private = false)
super || service.respond_to?(method)
end

Expand Down
4 changes: 2 additions & 2 deletions lib/ardes/resources_controller/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def method_missing_with_named_route_helper(method, *args, &block)
end

# delegate url help method creation to the controller
def respond_to_with_named_route_helper?(method)
respond_to_without_named_route_helper?(method) || controller.resource_named_route_helper_method?(method)
def respond_to_with_named_route_helper?(method, include_private = false)
respond_to_without_named_route_helper?(method, include_private) || controller.resource_named_route_helper_method?(method)
end

private
Expand Down
4 changes: 2 additions & 2 deletions lib/ardes/resources_controller/named_route_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def method_missing_with_named_route_helper(method, *args, &block)
end
end

def respond_to_with_named_route_helper?(method)
respond_to_without_named_route_helper?(method) || resource_named_route_helper_method?(method)
def respond_to_with_named_route_helper?(method, include_private = false)
respond_to_without_named_route_helper?(method, include_private) || resource_named_route_helper_method?(method)
end

# return true if the passed method (e.g. 'resources_path') corresponds to a defined
Expand Down

0 comments on commit 74345d6

Please sign in to comment.