-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for undefined methods included in ActionView
- Include Datagrid::Helper in ActionView::Base in lib/datagrid.rb - Include Datagrid::FormBuilder in ActionView::Helpers::FormBuilder in lib/datagrid.rb - Add action_view to spec_helper
- Loading branch information
1 parent
b8929e7
commit faf446c
Showing
4 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,5 +80,4 @@ class Error < StandardError | |
end | ||
end | ||
|
||
ActionView::Helpers::FormBuilder.send(:include, Datagrid::FormBuilder) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,4 @@ def datagrid_column_classes(grid, column) | |
end | ||
end | ||
end | ||
ActionView::Base.send(:include, Datagrid::Helper) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters