Module: Datagrid

Extended by:
ActiveSupport::Autoload
Defined in:
lib/datagrid.rb,
lib/datagrid/core.rb,
lib/datagrid/utils.rb,
lib/datagrid/engine.rb,
lib/datagrid/helper.rb,
lib/datagrid/columns.rb,
lib/datagrid/drivers.rb,
lib/datagrid/filters.rb,
lib/datagrid/ordering.rb,
lib/datagrid/renderer.rb,
lib/datagrid/active_model.rb,
lib/datagrid/form_builder.rb,
lib/datagrid/configuration.rb,
lib/datagrid/drivers/array.rb,
lib/datagrid/drivers/sequel.rb,
lib/datagrid/drivers/mongoid.rb,
lib/datagrid/drivers/mongo_mapper.rb,
lib/datagrid/drivers/active_record.rb,
lib/datagrid/column_names_attribute.rb,
lib/datagrid/drivers/abstract_driver.rb,
lib/datagrid/filters/composite_filters.rb

Defined Under Namespace

Modules: ActiveModel, ColumnNamesAttribute, Columns, Core, Drivers, Filters, FormBuilder, Helper, Ordering, Utils Classes: ArgumentError, ColumnUnavailableError, Configuration, ConfigurationError, Engine, FilteringError, OrderUnsupported, Renderer, Scaffold

Class Method Summary collapse

Class Method Details

.configurationObject


3
4
5
# File 'lib/datagrid/configuration.rb', line 3

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:


7
8
9
# File 'lib/datagrid/configuration.rb', line 7

def self.configure
  yield(configuration)
end

.included(base) ⇒ Object


26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/datagrid.rb', line 26

def self.included(base)
  base.class_eval do

    include ::Datagrid::Core
    include ::Datagrid::ActiveModel
    include ::Datagrid::Filters
    include ::Datagrid::Columns
    include ::Datagrid::ColumnNamesAttribute
    include ::Datagrid::Ordering

  end
end