Permalink
Switch branches/tags
Nothing to show
Commits on Nov 13, 2009
  1. resolved merge conflicts

    committed Nov 13, 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

    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.
    phuesler committed with Sven Fuchs Oct 10, 2009
  5. Check for the existence of the proxy class because it might exist al…

    …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
    phuesler committed with Sven Fuchs Oct 4, 2009
  6. backport changes from adva_cms

    * 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
    Clemens Kofler and Sven Fuchs committed with Sven Fuchs Sep 22, 2009
  7. allow to set_translation_table_name on client model. use the globaliz…

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

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

    …uilder not showing translated field values. http://github.com/joshmh/globalize2/issues/#issue/2
    oliver committed with hukl Oct 6, 2009
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…

    …e handed to create_translation_table!
    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
  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
  6. yuck, whitespace

    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
  7. rename data/post.rb to data/models.rb

    Clemens Kofler and Sven Fuchs committed Sep 14, 2009
Commits on Jul 21, 2009
  1. remove the index on the foreign key of the translation table when the…

    … table is dropped.
    
    added tests and addition to test_helper - Thank you http://github.com/sgt
    hukl committed Jul 21, 2009
  2. added Rakefile for plugin testing

    Signed-off-by: John-P. Bader <contact@smyck.org>
    soey committed with hukl May 27, 2009
Commits on Jun 3, 2009
Commits on Jun 2, 2009
Commits on May 27, 2009
Commits on May 26, 2009
  1. added MIT license

    joshmh committed May 26, 2009
Commits on May 21, 2009
  1. added a rakefile for testing

    committed May 21, 2009
Commits on May 1, 2009
Commits on Apr 29, 2009
  1. This patch makes sure globalize2 behaves as expected when a subclass …

    …of an untranslated model is translated.
    
    class Comment < ActiveRecord::Base
    end
    
    class TranslatedComment < Comment
      translates :content
    end
    hukl committed Apr 29, 2009
  2. added dependent destroy for globalize_translations. When a record wit…

    …h translated attributes is destroyed - the associated translations will be deleted as well. thanks to http://github.com/kares
    hukl committed Apr 29, 2009
Commits on Apr 20, 2009
  1. Passing options hash to reload so it doesn't break the default rails …

    …reload method.
    
    Also removed alias_method_chain for reload to keep things up to date for Rails 3.0. That change didn't break anything.
    hukl committed Apr 20, 2009