Sha256: b8fd722ddc788c524451eb77b7da494e14df65bdee75ca6f228223a131d62da6
Contents?: true
Size: 701 Bytes
Versions: 41
Compression:
Stored size: 701 Bytes
Contents
require_dependency "better_record/application_controller" module BetterRecord class TableSizesController < ApplicationController before_action :set_table_size, only: [:show] # GET /table_sizes def index TableSize.reload_data if Boolean.parse(params[:reload]) @table_sizes = TableSize.all end # GET /table_sizes/1 def show end private # Use callbacks to share common setup or constraints between actions. def set_table_size @table_size = TableSize.find_by(oid: params[:id]) end # Only allow a trusted parameter "white list" through. def table_size_params params.fetch(:table_size, {}) end end end
Version data entries
41 entries across 41 versions & 1 rubygems