support ruby-2.0.0-preview1 #160

Merged
merged 1 commit into from Jan 20, 2013

Projects

None yet

3 participants

Contributor

respond_to? returns false for protected methods in ruby 2.0, which is used to test existence of new/load methods in controllers.

This changes those calls to respond_to?(..., true) which returns true for protected (or private) methods.

@jhawthorn jhawthorn fix InController for ruby 2.0's respond_to?
respond_to? returns false for protected methods in ruby 2.0, which is
used to test existence of new/load methods in controllers. This changes
those calls to respond_to?(..., true) which returns true for protected
(or private) methods.
8f3e5c2
@stffn stffn merged commit ad0a6a8 into stffn:master Jan 20, 2013

Could we get a new gem version for this now that Ruby 2.0 is officially released?

@jhawthorn jhawthorn deleted the jhawthorn:ruby2.0 branch Feb 26, 2013
Owner
stffn commented Mar 10, 2013

Now, at last, 0.5.7 is there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment