Skip to content

Commit e54cf69

Browse files
committed
Add flash helper
Closes #120
1 parent 5f2f900 commit e54cf69

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/phlex/rails/helpers.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,13 @@ module FileFieldTag
465465
define_output_helper :file_field_tag
466466
end
467467

468+
module Flash
469+
extend Phlex::Rails::HelperMacros
470+
471+
# @!method flash(...)
472+
define_value_helper :flash
473+
end
474+
468475
module FontPath
469476
extend Phlex::Rails::HelperMacros
470477

0 commit comments

Comments
 (0)