Sha256: ecf632c249ab53b75b5fcc54cb47f23e34059e71843e70be6bb53d34224d2e18

Contents?: true

Size: 468 Bytes

Versions: 60

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

module Ibrain
  module Core
    module ControllerHelpers
      module StrongParameters
        def permitted_attributes
          Ibrain::PermittedAttributes
        end

        delegate(*Ibrain::PermittedAttributes::ATTRIBUTES,
                 to: :permitted_attributes,
                 prefix: :permitted)

        def permitted_user_attributes
          permitted_attributes.user_attributes
        end
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
ibrain-core-0.5.15 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.13 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.12 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.10 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.9 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.8 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.7 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.6 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.5 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.4 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.3 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.2 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.1 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.5.0 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.4.9 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.4.8 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.4.7 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.4.5 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.4.4 lib/ibrain/core/controller_helpers/strong_parameters.rb
ibrain-core-0.4.3 lib/ibrain/core/controller_helpers/strong_parameters.rb