Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Nov 13, 2009
  1. resolved merge conflicts

    authored
Commits on Nov 8, 2009
  1. @svenfuchs
  2. @svenfuchs

    prepare gemcutter release

    svenfuchs authored
  3. @svenfuchs

    Version bump to 0.0.0

    svenfuchs authored
  4. @phuesler @svenfuchs

    added unit test to reproduce error when rails config.cache_classes is

    phuesler authored svenfuchs committed
    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. @phuesler @svenfuchs

    Check for the existence of the proxy class because it might exist al…

    phuesler authored svenfuchs committed
    …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. @svenfuchs

    backport changes from adva_cms

    Clemens Kofler and Sven Fuchs authored svenfuchs committed
    * 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. @svenfuchs

    allow to set_translation_table_name on client model. use the globaliz…

    Clemens Kofler and Sven Fuchs authored svenfuchs committed
    …e_proxy.table_name instead of evaluating it.
Commits on Oct 6, 2009
  1. @hukl
  2. @hukl

    applied elsifaka's globalize2 patches for ultra long table names. did…

    hukl authored
    … not pull because I rewrote the tests quite a bit so its more readable.
  3. @hukl

    applying patch http://gist.github.com/107265 to fix issue with form b…

    oliver authored hukl committed
    …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 authored
  2. hash long index names on translation tables

    Clemens Kofler and Sven Fuchs authored
  3. stop globalize2 from raising an exception when untranslated fields ar…

    Clemens Kofler and Sven Fuchs authored
    …e handed to create_translation_table!
  4. fix #translate to work with namespaced models

    Clemens Kofler and Sven Fuchs authored
  5. let's have a test/all script

    Clemens Kofler and Sven Fuchs authored
  6. yuck, whitespace

    Clemens Kofler and Sven Fuchs authored
  7. rename data/post.rb to data/models.rb

    Clemens Kofler and Sven Fuchs authored
Commits on Jul 21, 2009
  1. @hukl
  2. @hukl

    remove the index on the foreign key of the translation table when the…

    hukl authored
    … table is dropped.
    
    added tests and addition to test_helper - Thank you http://github.com/sgt
  3. @soey @hukl

    added Rakefile for plugin testing

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

    added MIT license

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

    authored
Commits on May 1, 2009
  1. @joshmh
Commits on Apr 29, 2009
  1. @hukl

    This patch makes sure globalize2 behaves as expected when a subclass …

    hukl authored
    …of an untranslated model is translated.
    
    class Comment < ActiveRecord::Base
    end
    
    class TranslatedComment < Comment
      translates :content
    end
  2. @hukl

    added dependent destroy for globalize_translations. When a record wit…

    hukl authored
    …h translated attributes is destroyed - the associated translations will be deleted as well. thanks to http://github.com/kares
Commits on Apr 20, 2009
  1. @hukl

    Passing options hash to reload so it doesn't break the default rails …

    hukl authored
    …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.
Something went wrong with that request. Please try again.