Sha256: b1c93a068b406531465b61173a2c22d4863bbdbc264c9387cdbaf49f95d1930a

Contents?: true

Size: 788 Bytes

Versions: 20

Compression:

Stored size: 788 Bytes

Contents

module Notifiable
  
  class Engine < ::Rails::Engine
    isolate_namespace Notifiable
    
    # use rspec for testing
    config.generators do |g|
      g.test_framework      :rspec,        :fixture => false
      g.fixture_replacement :factory_girl, :dir => 'spec/factories'
      g.assets false
      g.helper false
    end
    
    # load decorators
    config.to_prepare do
      Dir.glob(Rails.root + "app/decorators/**/*_decorator*.rb").each do |c|
        require_dependency(c)
      end
    end
    
    # append migrations
    initializer :append_migrations do |app|
      unless app.root.to_s.match root.to_s
        config.paths["db/migrate"].expanded.each do |expanded_path|
          app.config.paths["db/migrate"] << expanded_path
        end
      end
    end
  end

end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
notifiable-rails-0.29.0 lib/notifiable/engine.rb
notifiable-rails-0.28.1 lib/notifiable/engine.rb
notifiable-rails-0.28.0 lib/notifiable/engine.rb
notifiable-rails-0.27.1 lib/notifiable/engine.rb
notifiable-rails-0.27.0 lib/notifiable/engine.rb
notifiable-rails-0.26.3 lib/notifiable/engine.rb
notifiable-rails-0.26.1 lib/notifiable/engine.rb
notifiable-rails-0.26.0 lib/notifiable/engine.rb
notifiable-rails-0.24.3 lib/notifiable/engine.rb
notifiable-rails-0.24.2 lib/notifiable/engine.rb
notifiable-rails-0.24.1 lib/notifiable/engine.rb
notifiable-rails-0.24.0 lib/notifiable/engine.rb
notifiable-rails-0.23.0 lib/notifiable/engine.rb
notifiable-rails-0.22.1 lib/notifiable/engine.rb
notifiable-rails-0.22.0 lib/notifiable/engine.rb
notifiable-rails-0.21.3 lib/notifiable/engine.rb
notifiable-rails-0.21.2 lib/notifiable/engine.rb
notifiable-rails-0.21.1 lib/notifiable/engine.rb
notifiable-rails-0.21.0 lib/notifiable/engine.rb
notifiable-rails-0.20.0 lib/notifiable/engine.rb