Sha256: f3572bae877c1877f3fb240b3cf639e8cd24227d3ef9e39539646ffcc0cf469b

Contents?: true

Size: 666 Bytes

Versions: 7

Compression:

Stored size: 666 Bytes

Contents

module Noodall
  module FormBuilder
    class << self
      attr_accessor :noreply_address
    end

    noreply_address = 'noreply@example.com'

    class Engine < Rails::Engine
      initializer "set menu" do |app|
        Noodall::UI.menu_items['Forms'] = :noodall_admin_forms_path
      end

      if Rails::VERSION::MINOR == 0 # if rails 3.0.x
        initializer "static assets" do |app|
          app.middleware.use ::ActionDispatch::Static, "#{root}/app/assets"
        end
      else
        initializer "Add noodall assets to precomiler" do |app|
          app.config.assets.precompile += %w( admin/formbuilder.js )
        end
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
noodall-form-builder-0.5.4 lib/noodall/form_builder/engine.rb
noodall-form-builder-0.5.3 lib/noodall/form_builder/engine.rb
noodall-form-builder-0.5.2 lib/noodall/form_builder/engine.rb
noodall-form-builder-0.5.0 lib/noodall/form_builder/engine.rb
noodall-form-builder-0.4.2 lib/noodall/form_builder/engine.rb
noodall-form-builder-0.4.1 lib/noodall/form_builder/engine.rb
noodall-form-builder-0.4.0 lib/noodall/form_builder/engine.rb