Sha256: 7633b7b91dc17f9f40f66ceb6348dabcdb6b270fdb80ba78857e518cfd15dbf3

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

# frozen_string_literal: true

require 'active_support'

module Yamls
  module Support
    module Parameters
      extend ActiveSupport::Concern

      def yamls
        Yamls::Parameters.new(
          params,
          model: controller_name.singularize,
          action: action_name,
        ).permit
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yamls-0.1.4 lib/yamls/support/parameters.rb