Sha256: bb4bb996ea679d0f7d8d94d968187820ebf1a733d06010451109a43dfc3ffab9

Contents?: true

Size: 430 Bytes

Versions: 5

Compression:

Stored size: 430 Bytes

Contents

module Rearview
  class ApplicationController < ActionController::Base
    helper Rearview::Engine.helpers
    before_filter :authenticate_user!

    protected

    def underscore_params
      self.params = self.params.inject({}.with_indifferent_access) { |a,(k,v)| a[k.to_s.underscore] = v; a }
    end

    def clean_empty_array_vals(key)
      params[key].reject! { |m| !m.present? } if params[key].present?
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rearview-1.2.3-jruby app/controllers/rearview/application_controller.rb
rearview-1.2.2.rc.2-jruby app/controllers/rearview/application_controller.rb
rearview-1.2.2.rc.1-jruby app/controllers/rearview/application_controller.rb
rearview-1.2.1-jruby app/controllers/rearview/application_controller.rb
rearview-1.2.0-jruby app/controllers/rearview/application_controller.rb