Sha256: e8c326945be9bdcfb7542d08e814e6f26578639505f613e29cd7b322a91b5509

Contents?: true

Size: 952 Bytes

Versions: 2

Compression:

Stored size: 952 Bytes

Contents

module RulesView
  module Defer

    def set_re_title(title)
      content_for :defer_re_title do
        title
      end
    end  

    
    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  

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rules_view-0.0.3 lib/rules_view/defer.rb
rules_view-0.0.2 lib/rules_view/defer.rb