Skip to content

Instantly share code, notes, and snippets.

@phuesler
Created October 10, 2009 18:35
Show Gist options
  • Save phuesler/207018 to your computer and use it in GitHub Desktop.
Save phuesler/207018 to your computer and use it in GitHub Desktop.
class Tag < ActiveRecord::Base
translates :name, :slug
# load our code explicitly to make sure it gets loaded in development mode
require 'tag_translation.rb' if Rails.env.development?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment