Skip to content

Commit

Permalink
Fix ryanb#951
Browse files Browse the repository at this point in the history
  • Loading branch information
hitendrasingh committed Oct 25, 2013
1 parent 4560928 commit 7b1bf63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cancan/model_adapters/active_record_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def database_records
@model_class.where(*(@rules.map(&:conditions))).joins(joins)
end
else
@model_class.scoped(:conditions => conditions, :joins => joins)
@model_class.all(:conditions => conditions, :joins => joins)
end
end

Expand Down

0 comments on commit 7b1bf63

Please sign in to comment.