Module: SyntaxHelper

Defined in:
app/helpers/syntax_helper.rb

Instance Method Summary collapse

Instance Method Details

#rails_versionObject



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, **options)
  javascript_pack_tag(*name, **options) + ( stylesheet_pack_tag(*name, **options) if options[:stylesheet] != false )    
end

#vue_gem_versionObject



6
7
8
# File 'app/helpers/syntax_helper.rb', line 6

def vue_gem_version
   "<p>#{Vuejs::VERSION}</p>".html_safe
end