Sha256: 80ed97bfba00e86a247ddb2dd3afe868bd6ce58abd167a3788df8f9791d9f480

Contents?: true

Size: 1.02 KB

Versions: 19

Compression:

Stored size: 1.02 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.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

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

end

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


Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
datagrid-1.5.1 lib/datagrid.rb
datagrid-1.5.0 lib/datagrid.rb
datagrid-1.4.4 lib/datagrid.rb
datagrid-1.4.3 lib/datagrid.rb
datagrid-1.4.2 lib/datagrid.rb
datagrid-1.4.1 lib/datagrid.rb
datagrid-1.4.0 lib/datagrid.rb
datagrid-1.3.9 lib/datagrid.rb
datagrid-1.3.7 lib/datagrid.rb
datagrid-1.3.6 lib/datagrid.rb
datagrid-1.3.5 lib/datagrid.rb
datagrid-1.3.4 lib/datagrid.rb
datagrid-1.3.3 lib/datagrid.rb
datagrid-1.3.2 lib/datagrid.rb
datagrid-1.3.1 lib/datagrid.rb
datagrid-1.3.0 lib/datagrid.rb
datagrid-1.2.3 lib/datagrid.rb
datagrid-1.2.2 lib/datagrid.rb
datagrid-1.2.1 lib/datagrid.rb