Module: GraphStarter::ApplicationHelper

Defined in:
app/helpers/graph_starter/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#asset_path(asset) ⇒ Object



3
4
5
# File 'app/helpers/graph_starter/application_helper.rb', line 3

def asset_path(asset)
  super(id: asset, model_slug: asset.class.model_slug)
end

#engine_view {|eval("__FILE__.gsub(Rails.root.to_s, GraphStarter::Engine.root.to_s)",b.binding)| ... } ⇒ Object

Yields:



7
8
9
# File 'app/helpers/graph_starter/application_helper.rb', line 7

def engine_view(&b)
   yield eval("__FILE__.gsub(Rails.root.to_s, GraphStarter::Engine.root.to_s)",b.binding) 
end