lib/rails_powergrid/concern/grid_concern.rb
# Update the preferences for this grid
Update the preferences for this grid
Update the preferences for this grid
def update_preferences
    params[:columns].each do |k,v|
      col = @grid.get_column(params[:field])
      if col
      end
    end
    render json: {}
  end
def update_preferences params [ :columns ] . each do | k , v | col = @grid . get_column ( params [ :field ] ) if col end end render json : { } end
Update the preferences for this grid
Update the preferences for this grid
#RailsPowergrid::Preference.update(get_current_user, self, params[:field], v)