Sha256: 13dfdbe8a18dc8daa03b9be1fa2e3e9d41dc5568ee67dbfa3638886523905d1c

Contents?: true

Size: 501 Bytes

Versions: 12

Compression:

Stored size: 501 Bytes

Contents

require 'rails'
require 'kaminari'

require 'smart_table/engine' if defined?(Rails::Engine)

require 'smart_table/version'
require 'smart_table/config'
require 'generators/init_generator'


module SmartTable

  # Method called on the gem initializer
  def self.setup
    if block_given?
      yield Config
    end
  end

  # Constants
  SORT_PARAM = :st_sort
  PAGE_PARAM = :st_page
  PAGE_SIZE_PARAM = :st_page_size
  SEARCH_PARAM = :st_search
  SHOW_ALL = 'show_all'
  PAGE_SIZES = [10,50,200]

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
smart_table-0.0.12 ./lib/smart_table.rb
smart_table-0.0.11 ./lib/smart_table.rb
smart_table-0.0.10 ./lib/smart_table.rb
smart_table-0.0.9 ./lib/smart_table.rb
smart_table-0.0.8 ./lib/smart_table.rb
smart_table-0.0.7 ./lib/smart_table.rb
smart_table-0.0.6 ./lib/smart_table.rb
smart_table-0.0.5 ./lib/smart_table.rb
smart_table-0.0.4 ./lib/smart_table.rb
smart_table-0.0.3 ./lib/smart_table.rb
smart_table-0.0.2 ./lib/smart_table.rb
smart_table-0.0.1 ./lib/smart_table.rb