Module: TheGrid

Defined in:
lib/the_grid.rb,
lib/the_grid/api.rb,
lib/the_grid/config.rb,
lib/the_grid/builder.rb,
lib/the_grid/version.rb,
lib/the_grid/api/command.rb,
lib/the_grid/builder/csv.rb,
lib/the_grid/builder/json.rb,
lib/the_grid/builder/context.rb,
lib/the_grid/api/command/sort.rb,
lib/the_grid/api/command/filter.rb,
lib/the_grid/api/command/search.rb,
lib/the_grid/api/command/paginate.rb,
lib/the_grid/api/command/batch_remove.rb,
lib/the_grid/api/command/batch_update.rb,
lib/generators/the_grid/install/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Api, Builder, Config

Constant Summary collapse

VERSION =
"1.1.8"

Class Method Summary collapse

Class Method Details

.build_for(relation) ⇒ Object



12
13
14
# File 'lib/the_grid.rb', line 12

def self.build_for(relation)
  Api.new(relation)
end

.configureObject



8
9
10
# File 'lib/the_grid.rb', line 8

def self.configure
  Config.new.tap{ |c| yield c }.apply
end