#501 invalid
Philipp Pirozhkov

init.rb plugin settings break :merb_datamapper adapter name initialization

Reported by Philipp Pirozhkov | August 1st, 2008 @ 06:51 AM

If merb's init.rb contains the row as following:

Merb::Plugins.config[:merb_datamapper][:session_table_name] = 'web.sessions'

@config ||= Merb::Plugins.config[:merb_datamapper] ||= get_config_for_environment

doesn't gather other settings into [:merb_datamapper], such for example adapter name, and this leads to exeption trying to load "_adapter.rb"

@config ||= get_config_for_environment.merge Merb::Plugins.config[:merb_datamapper]

instead, merges settings from init.rb and up, there init.rb has priority over plugins.yml and default settings

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Attachments

Pages