Sha256: 6bd4d0356d16bd128bea516a4e412d86c1c8861321cf4c8a43b55cf669352020

Contents?: true

Size: 246 Bytes

Versions: 9

Compression:

Stored size: 246 Bytes

Contents

class ClientNotesController < ApplicationController

  power :clients, :as => :client_scope

  power :client_notes, :context => :client, :as => :note_scope

  private

  def client
    @client ||= client_scope.find(params[:client_id])
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
consul-0.12.2 spec/shared/app_root/app/controllers/client_notes_controller.rb
consul-0.12.1 spec/shared/app_root/app/controllers/client_notes_controller.rb
consul-0.12.0 spec/shared/app_root/app/controllers/client_notes_controller.rb
consul-0.11.2 spec/shared/app_root/app/controllers/client_notes_controller.rb
consul-0.11.1 spec/shared/app_root/app/controllers/client_notes_controller.rb
consul-0.11.0 spec/shared/app_root/app/controllers/client_notes_controller.rb
consul-0.10.2 spec/shared/app_root/app/controllers/client_notes_controller.rb
consul-0.10.1 spec/shared/app_root/app/controllers/client_notes_controller.rb
consul-0.10.0 spec/shared/app_root/app/controllers/client_notes_controller.rb