Sha256: aadaf029adef836929a6a740991d9ff21ba403e0386f69450ea57f21e96108ec
Contents?: true
Size: 728 Bytes
Versions: 6
Compression:
Stored size: 728 Bytes
Contents
require 'active_support/configurable' module MightyGrid def self.configure(&block) yield @config ||= MightyGrid::Configuration.new end # Global settings for MightyGrid def self.config @config end class Configuration #:nodoc: include ActiveSupport::Configurable config_accessor :per_page config_accessor :order_direction config_accessor :grid_name config_accessor :header_tr_class config_accessor :table_class config_accessor :pagination_theme end configure do |config| config.per_page = 15 config.order_direction = 'asc' config.grid_name = 'grid' config.table_class = '' config.header_tr_class = '' config.pagination_theme = 'mighty_grid' end end
Version data entries
6 entries across 6 versions & 1 rubygems