Module: Gotenberg::Helpers::ActionView

Defined in:
lib/gotenberg/helpers/action_view.rb

Instance Method Summary collapse

Instance Method Details

#gotenberg_image_tag(source, options = {}) ⇒ Object



4
5
6
# File 'lib/gotenberg/helpers/action_view.rb', line 4

def gotenberg_image_tag source, options = {}
  gootenberg_source_tag(source, options.merge(tag: 'image'))
end

#gotenberg_javascript_tag(source, options = {}) ⇒ Object



8
9
10
# File 'lib/gotenberg/helpers/action_view.rb', line 8

def gotenberg_javascript_tag source, options = {}
  gootenberg_source_tag(source, options.merge(tag: 'js'))
end

#gotenberg_stylesheet_tag(source, options = {}) ⇒ Object



12
13
14
# File 'lib/gotenberg/helpers/action_view.rb', line 12

def gotenberg_stylesheet_tag source, options = {}
  gootenberg_source_tag(source, options.merge(tag: 'css'))
end