Module: Tenanfy::Helpers

Defined in:
lib/tenanfy/helpers.rb

Instance Method Summary collapse

Instance Method Details

#tenant_javascript_include_tag(*sources) ⇒ Object

Appends the tenant theme to the source if not a full-path or url



14
15
16
17
# File 'lib/tenanfy/helpers.rb', line 14

def tenant_javascript_include_tag(*sources)
  new_sources = append_tenant_theme_to_assets(*sources)
  javascript_include_tag(*new_sources)
end

Appends the tenant theme to the source if not a full-path or url



7
8
9
10
# File 'lib/tenanfy/helpers.rb', line 7

def tenant_stylesheet_link_tag(*sources)
  new_sources = append_tenant_theme_to_assets(*sources)
  stylesheet_link_tag(*new_sources)
end