Sha256: 27cd11c1be03d759cb463223e2ea39a09c2806a8af1122e23bb8097a2be27a6d

Contents?: true

Size: 474 Bytes

Versions: 16

Compression:

Stored size: 474 Bytes

Contents

module Trestle
  module Controller
    module Helpers
      extend ActiveSupport::Concern

      included do
        # Allow inclusion of helpers from Rails application
        self.helpers_path += Rails.application.helpers_paths

        # Add helpers declared from configuration as blocks
        helper Trestle.config.helper_module

        # Add helpers declared from configuration as module references
        helper *Trestle.config.helpers
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
trestle-0.9.8 app/controllers/concerns/trestle/controller/helpers.rb
trestle-0.9.7 app/controllers/concerns/trestle/controller/helpers.rb
trestle-0.9.6 app/controllers/concerns/trestle/controller/helpers.rb
trestle-0.9.5 app/controllers/concerns/trestle/controller/helpers.rb
trestle-0.9.4 app/controllers/concerns/trestle/controller/helpers.rb
trestle-0.9.3 app/controllers/concerns/trestle/controller/helpers.rb
trestle-0.9.2 lib/trestle/controller/helpers.rb
trestle-0.9.1 lib/trestle/controller/helpers.rb
trestle-0.9.0 lib/trestle/controller/helpers.rb
trestle-0.8.13 lib/trestle/controller/helpers.rb
trestle-0.8.12 app/controllers/concerns/trestle/controller/helpers.rb
trestle-0.8.11 app/controllers/concerns/trestle/controller/helpers.rb
trestle-0.8.10 app/controllers/concerns/trestle/controller/helpers.rb
trestle-0.8.9 app/controllers/concerns/trestle/controller/helpers.rb
trestle-0.8.8 app/controllers/concerns/trestle/controller/helpers.rb
trestle-0.8.7 app/controllers/concerns/trestle/controller/helpers.rb