agenda-libre-ruby/app/controllers/notes_controller.rb
2014-02-18 16:56:53 +01:00

13 lines
257 B
Ruby

class NotesController < InheritedResources::Base
belongs_to :event
private
def begin_of_association_chain
@event = Event.unscoped.find params[:moderation_id]
end
def permitted_params
params.permit note: [:contents]
end
end