google-code-export / globalite

Automatically exported from code.google.com/p/globalite
1 stars 0 forks source link

Globalite fails when acts_as_nested_set plugin loads (Rails 2.0.1) #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make sure you are currently using Rails 2.0.1
2. $ ./script/plugin install acts_as_nested_set
3. __localization_missing__ appears for every localized value
3. $ rm -rf vendor/plugins/acts_as_nested_set
4. Localized values appear according to language file

What is the expected output? What do you see instead?

See above.

What version of the product are you using? On what operating system?

Rails 2.0
Plugins: globalite, paginating_find, tzinfo_timezone, acts_as_nested_set

Please provide any additional information below.

I currently use acts_as_nested_set in my app. Previously this helper was 
incorporated into Rails, 
however as of Rails 2.x, it is now provided separately as a plugin.

** SOLUTION **
I actually managed to solve this issue (although it is a bit of a hack) by 
explicitly specifying the 
plugins in order in environment.rb:

  config.plugins = %W( acts_as_nested_set paginating_find tzinfo_timezone globalite )

Beware though that if you put globalite before acts_as_nested_set, then the 
aforementioned 
problem occurs again.

(Note that i could not find any mention of a required load order in the 
Globalite docs)

Original issue reported on code.google.com by jam...@gmail.com on 16 Dec 2007 at 5:35