Sha256: 23c48bde2e0dc8bac3e8f1a83e72553c11f09b06e9b11107257a247ffb519caa

Contents?: true

Size: 242 Bytes

Versions: 7

Compression:

Stored size: 242 Bytes

Contents

# require "eitil_core/application_controller/slice_params"

module EitilCore
  module ApplicationController
    module SliceParams

      def slice_params(*args)
        params.slice(*args).as_json.symbolize_keys
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eitil-1.0.4 eitil_core/lib/eitil_core/application_controller/slice_params.rb
eitil-1.0.3 eitil_core/lib/eitil_core/application_controller/slice_params.rb
eitil-1.0.3.e.1 eitil_core/lib/eitil_core/application_controller/slice_params.rb
eitil-1.0.2 eitil_core/lib/eitil_core/application_controller/slice_params.rb
eitil-1.0.1 eitil_core/lib/eitil_core/application_controller/slice_params.rb
eitil-1.0.1.e.4 eitil_core/lib/eitil_core/application_controller/slice_params.rb
eitil-1.0.1.e.3 eitil_core/lib/eitil_core/application_controller/slice_params.rb