Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix "ArgumentError: wrong number of arguments (2 for 0)" on Rails 2.3.14 #32

Merged
merged 1 commit into from

1 participant

@yabawock
Collaborator

This makes all tests pass again on Rails 2.3.14 (using Ruby 1.9.2-p290)

@yabawock yabawock merged commit b20ede7 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 21, 2011
  1. @yabawock

    [BUGFIX] ArgumentError: wrong number of arguments (2 for 0)

    yabawock authored
    This makes all tests pass on Rails 2.3.14
This page is out of date. Refresh to see the latest.
View
2  lib/routing_filter/filters/extension.rb
@@ -25,7 +25,7 @@ def initialize(*args)
def around_recognize(path, env, &block)
extract_extension!(path) unless excluded?(path)
- yield(path, env)
+ yield
end
def around_generate(params, &block)
View
4 lib/routing_filter/filters/pagination.rb
@@ -26,7 +26,7 @@ class Pagination < Filter
def around_recognize(path, env, &block)
page = extract_segment!(PAGINATION_SEGMENT, path)
- yield(path, env).tap do |params|
+ yield.tap do |params|
params[:page] = page.to_i if page
end
end
@@ -44,4 +44,4 @@ def append_page?(page)
page && page.to_i != 1
end
end
-end
+end
Something went wrong with that request. Please try again.