Module: SyntaxHelper
- Defined in:
- app/helpers/syntax_helper.rb
Instance Method Summary collapse
Instance Method Details
#rails_version ⇒ Object
2 3 4 |
# File 'app/helpers/syntax_helper.rb', line 2 def rails_version "<p>#{Rails.version}</p>".html_safe end |
#vue_component(*name, **options) ⇒ Object
10 11 12 |
# File 'app/helpers/syntax_helper.rb', line 10 def vue_component(*name, **) javascript_pack_tag(*name, **) + ( stylesheet_pack_tag(*name, **) if [:stylesheet] != false ) end |
#vue_gem_version ⇒ Object
6 7 8 |
# File 'app/helpers/syntax_helper.rb', line 6 def vue_gem_version "<p>#{Vuejs::VERSION}</p>".html_safe end |