Skip to content

Commit

Permalink
Merge pull request #266 from lonski/rails3
Browse files Browse the repository at this point in the history
ForbiddenAttributeError when using :extra_parameters fix
  • Loading branch information
leikind committed Dec 13, 2015
2 parents 2e56835 + d9c4d9a commit 0cac87c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wice/wice_grid_serialized_queries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def create_saved_query #:nodoc:
@saved_query.name = params[:query_name]
@saved_query.query = query_params

@saved_query.attributes = params[:extra] unless params[:extra].blank?
@saved_query.attributes = extra unless extra.nil?

if @saved_query.save
@grid_title_id = "#{@grid_name}_title"
Expand All @@ -65,7 +65,7 @@ def create_saved_query #:nodoc:
end

def extra #:nodoc:
params[:extra]
params[:extra].permit! unless params[:extra].nil?
end

protected
Expand Down

0 comments on commit 0cac87c

Please sign in to comment.