- Nov 12, 2010
-
-
Michael Halliday authored
This fixes an odd error I was seeing in development mode when cache_classes = false (the default), specifically when loading an object throught the parent in load_and_authorize_resource. Assume Photo model and User model where user has many photos: @photo = current_user.photos.find(1) # this returns a photo @photo1 = Photo.find(1) @photo.kind_of?(Photo) is not always true for some reason when class_cacheing is false. Where as @photo1.kind_of?(Photo) always appears to be true. Of interesting note, in the above example @photo != @photo1 if kind_of? is false. Very odd. Again, this only appears to be when loading and object through an association.
-
- Oct 08, 2010
-
-
Ryan Bates authored
-
- Oct 06, 2010
-
-
Ryan Bates authored
- Oct 05, 2010
-
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
- Oct 04, 2010
-
-
Ryan Bates authored
-
Sokolov Yura authored
-
- Sep 23, 2010
-
-
Ryan Bates authored
-
- Sep 21, 2010
-
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
- Sep 20, 2010
-
-
Sokolov Yura authored
-
- Sep 17, 2010
-
-
Ryan Bates authored
-
Sokolov Yura authored
-
Sokolov Yura authored
-
Sokolov Yura authored
-
Sokolov Yura authored
-
Sokolov Yura authored
-
Juan Manuel Barreneche authored
-
Juan Manuel Barreneche authored
Controllers which use 'inherit_resources' instead of Inheritance may have inherited_resource's methods protected
-
- Sep 10, 2010
-
-
Ryan Bates authored
-
- Sep 08, 2010
-
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
- Sep 04, 2010
-
-
Ryan Bates authored
-
- Sep 03, 2010
-
-
Ryan Bates authored
adding check_authorization and skip_authorization controller class methods to ensure authorization is triggered (thanks justinko) - closes #135
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
the new and create actions will now build the resource with attributes based on ability conditions hash - closes #114
-
Ryan Bates authored
-
Ryan Bates authored
passing a hash to can? will check permissions on association, this is done automatically in authorize_resource - closes #121
-
Ryan Bates authored
-
Ryan Bates authored
-
- Sep 02, 2010
-
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
skip block when only class is passed to ability check, also don't pass class to block for :all - closes #116
-
- Sep 01, 2010
-
- Aug 31, 2010
-
-
Ryan Bates authored
-