Sha256: 988cd1a01a65ec66c6e97b1c2e9b2f40b150761ed4908a3bb5920bc0479037b3
Contents?: true
Size: 483 Bytes
Versions: 2
Compression:
Stored size: 483 Bytes
Contents
# frozen_string_literal: true require "rails/engine" require "datagrid/helper" require "datagrid/form_builder" module Datagrid # @!visibility private class Engine < ::Rails::Engine def self.extend_modules ActionView::Base.include(Datagrid::Helper) ActionView::Helpers::FormBuilder.include(Datagrid::FormBuilder) end initializer "datagrid.helpers" do ActiveSupport.on_load :action_view do Engine.extend_modules end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datagrid-2.0.0 | lib/datagrid/engine.rb |
datagrid-2.0.0.pre.alpha | lib/datagrid/engine.rb |