- Mar 16, 2011
-
-
Ryan Bates authored
use Item.new instead of build_item for singleton resource so it doesn't mess up database - closes #304
-
Ryan Bates authored
making accessible_by action default to :index and parent action default to :show so we don't check :read action directly - closes #302
-
Adam Wróbel authored
This reverts e3eab13b I don't know what was the idea of that, but it turned out REAL bad. `collection` sets the collection instance variable. `resource_base` is used all over CanCan. It's also used inside `load_collection?` which is checked before `load_collection` is called. That means we actually set the collection instance variable through inherited_resources (without any authorization whatsoever) before trying to load it through CanCan using `accessible_by`. 1. def load_resource 2. unless skip?(:load) 3. if load_instance? 4. self.resource_instance ||= load_resource_instance 5. elsif load_collection? 6. self.collection_instance ||= load_collection 7. end 8. end 9. end `collection_instance` is set on line 5 instead of line 6.
-
- Mar 11, 2011
-
- Mar 09, 2011
-
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
Merge branch 'inherited_resources_collection_fix' of https://github.com/tanordheim/cancan into tanordheim-inherited_resources_collection_fix
-
Ryan Bates authored
-
- Mar 08, 2011
-
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
Ryan Bates authored
-
Trond Arve Nordheim authored
Use collection instead of end_of_association_chain in the inherited_resources integration, as per suggested by aq1018
-
- Feb 22, 2011
-
-
Ryan Bates authored
-
- Feb 17, 2011
-
-
Stefano Verna authored
-
- Feb 14, 2011
-
-
Ryan Bates authored
-
https://github.com/amw/cancanRyan Bates authored
Merge branch 'pass_action_to_accessible_by' of https://github.com/amw/cancan into amw-pass_action_to_accessible_by
-
- Feb 04, 2011
-
-
Sam Pohlenz authored
-
- Feb 03, 2011
-
-
Adam Wróbel authored
-
- Jan 28, 2011
-
-
Ryan Bates authored
-
- Jan 20, 2011
-
-
Ryan Bates authored
- Jan 19, 2011
-
-
Ryan Bates authored
-
- Jan 18, 2011
-
-
stellard authored
-
Ryan Bates authored
-
stellard authored
-
stellard authored
-
Ryan Bates authored
-
- Jan 11, 2011
-
-
Ryan Bates authored