Skip to content

Fix Rails 2 Support #312

Closed
ryanb opened this Issue Mar 19, 2011 · 1 comment

1 participant

@ryanb
Owner
ryanb commented Mar 19, 2011

CanCan 1.6 breaks Rails 2 support because it checks ActiveRecord::Relation directly as pointed by rwilcox in this commit. Since that is not available in Rails 2 it raises an undefined constant error. It should first check that ActiveRecord::Relation is defined and then do this check.

@ryanb
Owner
ryanb commented Mar 25, 2011

make sure ActiveRecord::Relation is defined before checking conditions against it so Rails 2 is supported again - closed by 89e4098

@ryanb ryanb closed this Mar 25, 2011
@jhuckabee jhuckabee pushed a commit to jhuckabee/cancan that referenced this issue Jun 22, 2011
@ryanb make sure ActiveRecord::Relation is defined before checking condition…
…s against it so Rails 2 is supported again - closes #312
89e4098
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.