You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not using cancan in my app, but in koudoku/subscriptions_controller, execution is passing into the if defined?(:can?) block and throwing an undefined method error.
I'm on ruby 2.2.3 and rails 5.0.0. Here's what I get in pry:
I'm not using cancan in my app, but in koudoku/subscriptions_controller, execution is passing into the
if defined?(:can?)
block and throwing an undefined method error.I'm on ruby 2.2.3 and rails 5.0.0. Here's what I get in pry:
Which is actually what I get for any symbol:
I think the condition needs to be
if defined?(:can?) == "method"
orif respond_to? :can?
The text was updated successfully, but these errors were encountered: