Sha256: 37c33c3f99d1e5b49bd8d1f873da5e6250e43ee676ce422d6c93001f86e26a25
Contents?: true
Size: 1016 Bytes
Versions: 1
Compression:
Stored size: 1016 Bytes
Contents
# frozen_string_literal: true require "action_view" require "datagrid/configuration" require "datagrid/engine" # @main README.md module Datagrid # @!visibility private def self.included(base) Utils.warn_once("Including Datagrid is deprecated. Inherit Datagrid::Base instead.") base.class_eval do include ::Datagrid::Core include ::Datagrid::ActiveModel include ::Datagrid::Filters include ::Datagrid::Columns include ::Datagrid::ColumnNamesAttribute include ::Datagrid::Ordering end end def self.configuration @configuration ||= Configuration.new end # Configure def self.configure(&block) block.call(configuration) end class ConfigurationError < StandardError; end class ArgumentError < ::ArgumentError; end class ColumnUnavailableError < StandardError; end end require "datagrid/base" require "datagrid/generators/scaffold" require "datagrid/generators/views" I18n.load_path << File.expand_path("datagrid/locale/en.yml", __dir__)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datagrid-2.0.0.pre.alpha | lib/datagrid.rb |