spec/shared/app_root/app/models/power.rb in consul-0.8.0 vs spec/shared/app_root/app/models/power.rb in consul-0.9.0

- old
+ new

@@ -11,11 +11,31 @@ power :all_clients do Client end + power :fast_clients do + Client.active + end + + power :fast_client? do |client| + !client.deleted? + end + power :client_notes do |client| client.notes + end + + power :fast_client_notes do |client| + client.notes + end + + power :fast_client_note? do |client, note| + note.client_id == client.id + end + + power :fast_client_note_without_collection? do |client, note| + note.client_id == client.id end power :notes do Note.scoped(:joins => :client) end