Sha256: 521e9f955bb7950f76a0e6c2ed3162b9e32360d254a5c078d9b1761c9ce3fb55

Contents?: true

Size: 617 Bytes

Versions: 6

Compression:

Stored size: 617 Bytes

Contents

module JiveAddOns
	class Engine < ::Rails::Engine
		isolate_namespace JiveAddOns

		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
	
	def self.setup(&block)
		@@config ||= JiveAddOns::Engine::Configuration.new

		# Whitelist specific add-on names
		@@config.whitelist = []
		# Blacklist specific add-on names
		@@config.blacklist = []

		yield @@config if block

		return @@config
	end

	def self.config
		Rails.application.config
	end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jive_add_ons-0.0.9 lib/jive_add_ons/engine.rb
jive_add_ons-0.0.8 lib/jive_add_ons/engine.rb
jive_add_ons-0.0.7 lib/jive_add_ons/engine.rb
jive_add_ons-0.0.6 lib/jive_add_ons/engine.rb
jive_add_ons-0.0.5 lib/jive_add_ons/engine.rb
jive_add_ons-0.0.4 lib/jive_add_ons/engine.rb