Sha256: a940bc2279ade79d50c427bbca1e1324dc9820debe309bb8174374ef07d5d029

Contents?: true

Size: 452 Bytes

Versions: 146

Compression:

Stored size: 452 Bytes

Contents

module Avo
  module Concerns
    module HasHelpers
      def helpers
        @helpers ||= Class.new do
          def initialize
            helper_names = ActionController::Base.all_helpers_from_path Rails.root.join("app", "helpers")
            helpers = ActionController::Base.modules_for_helpers helper_names

            helpers.each do |helper|
              extend helper
            end
          end
        end.new
      end
    end
  end
end

Version data entries

146 entries across 146 versions & 1 rubygems

Version Path
avo-3.18.1.tw4 lib/avo/concerns/has_helpers.rb
avo-3.18.1 lib/avo/concerns/has_helpers.rb
avo-3.18.0.tw4 lib/avo/concerns/has_helpers.rb
avo-3.18.0 lib/avo/concerns/has_helpers.rb
avo-3.17.9.beta2 lib/avo/concerns/has_helpers.rb
avo-3.17.9.beta1 lib/avo/concerns/has_helpers.rb
avo-3.17.9.tw4 lib/avo/concerns/has_helpers.rb
avo-3.17.9 lib/avo/concerns/has_helpers.rb
avo-3.17.8.tw4 lib/avo/concerns/has_helpers.rb
avo-3.17.8 lib/avo/concerns/has_helpers.rb
avo-3.17.7 lib/avo/concerns/has_helpers.rb
avo-3.17.6.tw4 lib/avo/concerns/has_helpers.rb
avo-3.17.6 lib/avo/concerns/has_helpers.rb
avo-3.17.5 lib/avo/concerns/has_helpers.rb
avo-3.17.4 lib/avo/concerns/has_helpers.rb
avo-3.17.3 lib/avo/concerns/has_helpers.rb
avo-3.17.5.tw4 lib/avo/concerns/has_helpers.rb
avo-3.17.4.tw4 lib/avo/concerns/has_helpers.rb
avo-3.17.3.tw4 lib/avo/concerns/has_helpers.rb
avo-3.17.2.tw4 lib/avo/concerns/has_helpers.rb