lib/cancannible/config.rb in cancannible-0.0.1 vs lib/cancannible/config.rb in cancannible-0.0.2
- old
+ new
@@ -18,9 +18,11 @@
self.store_cached_abilities = nil
end
reset!
def self.refine_access(refinement={})
- self.refinements << refinement
+ stage = (refinement.delete(:stage) || 1) - 1
+ self.refinements[stage] ||= []
+ self.refinements[stage] << refinement
end
end
\ No newline at end of file