Module: MightyGrid

Extended by:
ActiveSupport::Autoload
Defined in:
lib/mighty_grid.rb,
lib/mighty_grid/base.rb,
lib/mighty_grid/engine.rb,
lib/mighty_grid/column.rb,
lib/mighty_grid/version.rb,
lib/mighty_grid/exceptions.rb,
lib/mighty_grid/grid_renderer.rb,
lib/mighty_grid/filter_renderer.rb,
lib/mighty_grid/mighty_grid_ext.rb,
lib/mighty_grid/helpers/view_helpers.rb,
lib/generators/mighty_grid/install_generator.rb

Defined Under Namespace

Modules: Exceptions, Generators, MgHTML, MgHash, VERSION, ViewHelpers Classes: Base, Column, Engine, FilterRenderer, GridRenderer

Constant Summary collapse

@@configured =
false
@@grid_name =
'grid'
@@per_page =
15
@@order_direction =
'asc'
@@order_type =
'single'
@@order_asc =
'↑'
@@order_desc =
'↓'
''
''
'mg-order-active'
@@order_wrapper_class =
''
@@table_class =
''
@@header_tr_class =
''
@@pagination_theme =
'mighty_grid'

Class Method Summary collapse

Class Method Details

.configured?Boolean

:nodoc:

Returns:

  • (Boolean)

16
17
18
# File 'lib/mighty_grid.rb', line 16

def self.configured? #:nodoc:
  @@configured
end

.gem_versionObject


2
3
4
# File 'lib/mighty_grid/version.rb', line 2

def self.gem_version
  Gem::Version.new VERSION::STRING
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (MightyGrid)

    the object that the method was called on


59
60
61
62
# File 'lib/mighty_grid.rb', line 59

def self.setup
  @@configured = true
  yield self
end