Click to Globalize: rewritten and moved to GitHub
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_tokenmethod is called only if the application is protected against the CSRF attacks (protect_against_forgery?returnstrue) - It uses as parameter key what
request_forgery_protection_tokenreturns, instead of the hard-codedauthenticity_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!
If you enjoyed this post, feel free to recommend me on Working With Rails.