Sha256: b4ed566d27e71f3adc69fc3dc4cb58dbba8faeda88c40c60c11c12260d8dac02
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
module MegaBar class TmpFieldDisplaysController < ApplicationController include MegaBarConcern before_action ->{ myinit 13 }, 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_field_displays_controller.rb |