Module: RulesEngineView::Defer

Defined in:
lib/rules_engine_view/defer.rb

Instance Method Summary collapse

Instance Method Details

#set_re_breadcrumbs(*crumbs) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/rules_engine_view/defer.rb', line 10

def set_re_breadcrumbs(*crumbs)
  content_for :defer_re_breadcrumbs do
    if RulesEngineView::Config.prefix_breadcrumbs
      re_breadcrumbs(*([RulesEngineView::Config.prefix_breadcrumbs] << crumbs).flatten)
    else  
      re_breadcrumbs(*crumbs)
    end  
  end
end

#set_re_breadcrumbs_right(*crumbs) ⇒ Object



20
21
22
23
24
25
26
27
28
# File 'lib/rules_engine_view/defer.rb', line 20

def set_re_breadcrumbs_right(*crumbs)
  content_for :defer_re_breadcrumbs do
    if RulesEngineView::Config.prefix_breadcrumbs
      re_breadcrumbs_right(*([RulesEngineView::Config.prefix_breadcrumbs] + crumbs).flatten)
    else  
      re_breadcrumbs_right(*crumbs)
    end  
  end
end

#set_re_javascript_include(javascript_include_or_array) ⇒ Object



4
5
6
7
8
# File 'lib/rules_engine_view/defer.rb', line 4

def set_re_javascript_include(javascript_include_or_array)
  content_for :defer_re_javascript_include do
    javascript_include_tag(javascript_include_or_array)
  end
end