Sha256: 8060ccbe19ee60e32a42c04da0f47b861dfb4b0bd6c457d4539062099ead8847

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

require "action_view"
require "datagrid/configuration"

module Datagrid

  extend ActiveSupport::Autoload

  autoload :Core
  autoload :ActiveModel
  autoload :Filters
  autoload :Columns
  autoload :ColumnNamesAttribute
  autoload :Ordering
  autoload :Configuration

  autoload :Helper
  ActionView::Base.send(:include, Datagrid::Helper)
  
  autoload :FormBuilder
  ActionView::Helpers::FormBuilder.send(:include, Datagrid::FormBuilder)
  
  autoload :Renderer

  autoload :Engine

  def self.included(base)
    base.extend         ClassMethods
    base.class_eval do

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

    end
  end # self.included

  module ClassMethods
  end # ClassMethods

  class ConfigurationError < StandardError; end
  class ArgumentError < ::ArgumentError; end

end

require "datagrid/scaffold"
I18n.load_path << File.expand_path('../datagrid/locale/en.yml', __FILE__)


Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
datagrid-1.1.2 lib/datagrid.rb
datagrid-1.1.1 lib/datagrid.rb
datagrid-1.1.0 lib/datagrid.rb
datagrid-1.0.5 lib/datagrid.rb
datagrid-1.0.4 lib/datagrid.rb
datagrid-1.0.3 lib/datagrid.rb
datagrid-1.0.2 lib/datagrid.rb
datagrid-1.0.1 lib/datagrid.rb
datagrid-1.0.0 lib/datagrid.rb