Sha256: eb9af6297d7856b79eff9ae225a65495e3fdb7ac275d146ca58b5c4c4c342948
Contents?: true
Size: 923 Bytes
Versions: 5
Compression:
Stored size: 923 Bytes
Contents
require "action_view" module Datagrid extend ActiveSupport::Autoload autoload :Core autoload :ActiveModel autoload :Filters autoload :Columns autoload :Ordering 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::Ordering end base.send :include, InstanceMethods end # self.included module ClassMethods end # ClassMethods module InstanceMethods end # InstanceMethods class ConfigurationError < StandardError; end class ArgumentError < ::ArgumentError; end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
datagrid-0.7.1 | lib/datagrid.rb |
datagrid-0.7.0 | lib/datagrid.rb |
datagrid-0.6.4 | lib/datagrid.rb |
datagrid-0.6.3 | lib/datagrid.rb |
datagrid-0.6.2 | lib/datagrid.rb |