Click to Globalize has been rewritten, in order to use all instance methods of the JavaScript class, instead of class methods.
I also fixed some tiny issues:
- The
form_authentication_token method is called only if the application is protected against the CSRF attacks (protect_against_forgery? returns true)
- It uses as parameter key what
request_forgery_protection_token returns, instead of the hard-coded authenticity_token
- The JavaScript class uses Prototype’s dom:loaded custom event.
I also migrated the plugin GitHub. The new repo is http://github.com/jodosha/click-to-globalize/tree/master, so the oldest one is deprecated.
Have a nice globalization!