Sha256: 2055a9982d5c4494e56b734837ca4c20ef500cd444eeb04113221a99100462c7

Contents?: true

Size: 372 Bytes

Versions: 2

Compression:

Stored size: 372 Bytes

Contents

# -*- encoding : utf-8 -*-
module Dao
  class Conducer
    ViewSupport = proc do
      include Tagz.globally

      class << Conducer
        include Tagz.globally
      end

      url_helpers = Rails.application.try(:routes).try(:url_helpers)
      include(url_helpers) if url_helpers
      include(ActionView::Helpers) if defined?(ActionView::Helpers)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dao-4.4.4 lib/dao/conducer/view_support.rb
dao-4.4.2 lib/dao/conducer/view_support.rb