Permalink
Switch branches/tags
Commits on Jan 11, 2010
  1. added &block as 3rd method argument to make sure it doesn't raise ano…

    hukl committed Jan 11, 2010
    …ther argument error if a block is supplied
Commits on Dec 26, 2009
  1. make translated attribute readers optionally accept a locale (e.g.

    Sven Fuchs committed Dec 26, 2009
    post.subject(:de))
  2. stop ActiveRecord::Base.locale from defaulting to I18n.locale, add Ac…

    Sven Fuchs committed Dec 26, 2009
    …tiveRecord::Base.with_locale and make ActiveRecord::Base#attributes= accept a virtual :locale attribute.
  3. style nazi hits

    Sven Fuchs committed Dec 26, 2009
  4. update readme

    Sven Fuchs committed Dec 25, 2009
  5. remove bogus include from init.rb

    Sven Fuchs committed Dec 25, 2009
  6. bump to 0.2.0

    Sven Fuchs committed Dec 25, 2009
  7. named scope #with_translations

    Sven Fuchs committed Dec 25, 2009
  8. clean up tests a bit, add validation tests

    Sven Fuchs committed Dec 20, 2009
  9. update init.rb

    Sven Fuchs committed Dec 15, 2009
  10. clean a few things up

    Sven Fuchs committed Dec 14, 2009
  11. add .DS_Store to gitignore

    Sven Fuchs committed Dec 14, 2009
  12. update init.rb to only require globalize/active_record

    Sven Fuchs committed Nov 16, 2009
  13. Big refactoring towards version 0.2.0. Stripping off all features tha…

    Sven Fuchs committed Nov 15, 2009
    …t have been duplicated in I18n. Only model translations related features will remain in Globalize2.
  14. prepare tagging v0.1.1

    Sven Fuchs committed Dec 26, 2009
Commits on Nov 14, 2009
  1. whitespace

    Sven Fuchs committed Nov 14, 2009
Commits on Nov 8, 2009
  1. Regenerated gemspec for version 0.1.0

    Sven Fuchs committed Nov 8, 2009
  2. prepare gemcutter release

    Sven Fuchs committed Nov 8, 2009
  3. Version bump to 0.0.0

    Sven Fuchs committed Nov 8, 2009
  4. added unit test to reproduce error when rails config.cache_classes is

    phuesler committed with Sven Fuchs Oct 10, 2009
    set to false. This is the case in development mode.
    
    The problem occurs,when the proxy class (e.g TagTranslation) exists already
    when gloablize wants to create it.
  5. Check for the existence of the proxy class because it might exist al…

    phuesler committed with Sven Fuchs Oct 4, 2009
    …ready.
    
     Due to rails lazy class loading using const_missing I try to load the proxy class,
     if that fails I create a new one. After that, append the globalize methods to the
     class.
    
     I did not find a way to reproduce this error with a unit test. So here is how
     you can reproduce this:
    
     1. Have a model that needs translation (e.g Tag)
     2. Create a TagTranslation model and add a custom method to it (e.g slugname)
     3. ruby script/console
     4. Tag.new (Tag class is loaded and proxy class is being created)
     5. TagTranslation.new.respond_to?(:slugname) => false but should be true
  6. backport changes from adva_cms

    Clemens Kofler and Sven Fuchs committed with Sven Fuchs Sep 22, 2009
    * fix issue with active_support/dependencies class reloading
    * do not raise an exception on missing translations in static backend (dubious change)
    * add a clear_cache method, only clear the cache on reload (i.e. keep the stash) (dubious change)
    * add a translated_attributes method
  7. allow to set_translation_table_name on client model. use the globaliz…

    Clemens Kofler and Sven Fuchs committed with Sven Fuchs Sep 22, 2009
    …e_proxy.table_name instead of evaluating it.
Commits on Oct 6, 2009
  1. applied elsifaka's globalize2 patches for ultra long table names. did…

    hukl committed Oct 6, 2009
    … not pull because I rewrote the tests quite a bit so its more readable.
  2. applying patch http://gist.github.com/107265 to fix issue with form b…

    oliver committed with hukl Oct 6, 2009
    …uilder not showing translated field values. http://github.com/joshmh/globalize2/issues/#issue/2
Commits on Sep 14, 2009
  1. use underscores instead of slashes for table names

    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
  2. hash long index names on translation tables

    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
  3. stop globalize2 from raising an exception when untranslated fields ar…

    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
    …e handed to create_translation_table!
  4. fix #translate to work with namespaced models

    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
  5. let's have a test/all script

    Clemens Kofler and Sven Fuchs committed Sep 14, 2009