diff --git a/CHANGELOG.md b/CHANGELOG.md index 62404f8ac..e937370d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # master +* Add `Base.format` for better compatibility with `ActionView::Template`. + + *Joel Hawksley* + # v2.2.1 * Fix bug where template could not be found if `inherited` was redefined. diff --git a/lib/view_component/base.rb b/lib/view_component/base.rb index d97f99207..1ad59c73e 100644 --- a/lib/view_component/base.rb +++ b/lib/view_component/base.rb @@ -220,6 +220,10 @@ def type "text/html" end + def format + :html + end + def identifier source_location end