Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bogdan/datagrid
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan committed Sep 27, 2024
2 parents 5e90099 + 993c7c1 commit f7770c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/datagrid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ module Datagrid
autoload :Configuration

autoload :Helper
ActionView::Base.send(:include, Datagrid::Helper)
::ActiveSupport.on_load(:action_view) do
ActionView::Base.send(:include, Datagrid::Helper)
end

autoload :FormBuilder
ActionView::Helpers::FormBuilder.send(:include, Datagrid::FormBuilder)
::ActiveSupport.on_load(:action_view) do
ActionView::Helpers::FormBuilder.send(:include, Datagrid::FormBuilder)
end

autoload :Renderer

Expand Down

0 comments on commit f7770c3

Please sign in to comment.