Sha256: 9badd75b39b213769f769e64a6bdd9487017a55890b4d3a8080240ff2d897a84
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
<% if the_module_name %> module <%=the_module_name%> <% end %>class <%= the_controller_name %> < ApplicationController include MegaBarConcern before_action ->{ myinit <%= model_id %> }, only: [:index, :show, :edit, :new] private # Never trust parameters from the scary internet, only allow the white list through. def _params params.require(:textbox).permit() end <% if the_module_name %> end<% end %> end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mega_bar-0.0.1 | lib/generators/mega_bar/mega_bar_fields/templates/generic_controller.rb |