Sha256: 410dd4f22a6fa1a4d3afe6903fc7a53627d7d18b2c5c70618e96be1368ce3487

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

module Fierce
  class Railtie < ::Rails::Railtie
    initializer 'fierce.autoload', :before => :set_autoload_paths do |app|
      Fierce.add_path (Rails.root.to_s + "/app/presenters") # default opinionation

      Fierce.paths.each do |path|
        app.config.autoload_paths << path
      end
    end
  end
end

ActionView::Template.register_template_handler :mustache, Fierce::Handler

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fierce-0.1.3 lib/fierce/railtie.rb
fierce-0.1.2 lib/fierce/railtie.rb
fierce-0.1.1 lib/fierce/railtie.rb
fierce-0.1.0 lib/fierce/railtie.rb