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

Version Path
better_record-0.12.2 app/controllers/better_record/table_sizes_controller.rb
better_record-0.12.1 app/controllers/better_record/table_sizes_controller.rb
better_record-0.11.5 app/controllers/better_record/table_sizes_controller.rb
better_record-0.11.4 app/controllers/better_record/table_sizes_controller.rb
better_record-0.10.10 app/controllers/better_record/table_sizes_controller.rb
better_record-0.10.9 app/controllers/better_record/table_sizes_controller.rb
better_record-0.10.8 app/controllers/better_record/table_sizes_controller.rb
better_record-0.10.7 app/controllers/better_record/table_sizes_controller.rb
better_record-0.10.6 app/controllers/better_record/table_sizes_controller.rb
better_record-0.10.5 app/controllers/better_record/table_sizes_controller.rb
better_record-0.10.4 app/controllers/better_record/table_sizes_controller.rb
better_record-0.10.3 app/controllers/better_record/table_sizes_controller.rb
better_record-0.10.2 app/controllers/better_record/table_sizes_controller.rb
better_record-0.10.1 app/controllers/better_record/table_sizes_controller.rb
better_record-0.10.0 app/controllers/better_record/table_sizes_controller.rb
better_record-0.9.3 app/controllers/better_record/table_sizes_controller.rb
better_record-0.9.1 app/controllers/better_record/table_sizes_controller.rb
better_record-0.9.0 app/controllers/better_record/table_sizes_controller.rb
better_record-0.8.6 app/controllers/better_record/table_sizes_controller.rb
better_record-0.8.5 app/controllers/better_record/table_sizes_controller.rb