Sha256: d82644f897ee135104a3d82e0ee58ec332399ece4e82c18b5d927f79b4091647

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

module MegaBar
  class TmpTextreadsController < ApplicationController
    include MegaBarConcern
    before_action ->{ myinit 16 },  only: [:index, :show, :edit, :new]


    private
      def _params
        permits = []
        controller_name.classify.constantize.attribute_names.each do |att|
          permits << att unless ['id', 'created_at', 'updated_at'].include?(att)
        end
        params.require(controller_name.singularize).permit(permits)
      end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mega_bar-0.0.1 app/controllers/mega_bar/tmp_textreads_controller.rb