Module: SmartTable
- Defined in:
- lib/generators/init_generator.rb,
lib/smart_table.rb,
lib/smart_table/config.rb,
lib/smart_table/engine.rb,
lib/smart_table/version.rb,
app/helpers/smart_table/smart_table_helper.rb,
app/controllers/concerns/smart_table/smart_table_concern.rb
Overview
Generates gem initializer
rails g smart_table:init
Defined Under Namespace
Modules: SmartTableConcern, SmartTableHelper Classes: Config, Engine, InitGenerator
Constant Summary collapse
- SORT_PARAM =
Constants
: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]
- VERSION =
"0.0.12"
Class Method Summary collapse
-
.setup ⇒ Object
Method called on the gem initializer.
Class Method Details
.setup ⇒ Object
Method called on the gem initializer
14 15 16 17 18 |
# File 'lib/smart_table.rb', line 14 def self.setup if block_given? yield Config end end |