<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@ module ClickToGlobalizeHelper
 
   # Render +app/views/shared/_click_to_globalize.html.erb+.
   def click_to_globalize
-    render :file =&gt; @@click_partial if globalize?
+    render :file =&gt; @@click_partial if in_place_translations?
   end
 
   # Get form_authenticity_token if the application is protected from forgery.</diff>
      <filename>app/helpers/click_to_globalize_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -78,20 +78,37 @@ module Click
     def self.included(recipient)
       recipient.send :include, InstanceMethods
       recipient.class_eval do
-        helper_method :globalize?
+        helper_method :in_place_translations?
       end
     end
 
     module InstanceMethods
+      include ActiveSupport::Deprecation
+
+      # This is the &lt;b&gt;on/off&lt;/b&gt; switch for the Click to Globalize features.
+      # Override this method in your controllers for custom conditions.
+      #
+      # Example:
+      #
+      #   def in_place_translations?
+      #     current_user.admin?
+      #   end
+      def in_place_translations?
+        true
+      end
+
       # This is the &lt;b&gt;on/off&lt;/b&gt; switch for the Click to Globalize features.
       # Override this method in your controllers for custom conditions.
       #
+      # NOTICE: this method has been deprecated in favor of &lt;tt&gt;in_place_translations?&lt;/tt&gt;
+      #
       # Example:
       #
       #   def globalize?
       #     current_user.admin?
       #   end
       def globalize?
+        ::ActiveSupport::Deprecation.warn(&quot;You should use in_place_translations?&quot;, caller)
         true
       end
     end</diff>
      <filename>lib/click_to_globalize.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ end
 
 class TranslationsControllerTest &lt; ActionController::TestCase
   test &quot;should have translation mode enabled by default&quot; do
-    assert @controller.globalize?
+    assert @controller.in_place_translations?
   end
 
   test &quot;routing&quot; do
@@ -50,7 +50,11 @@ class AnApplicationControllerTest &lt; ActionController::TestCase
   setup :load_translations
 
   test &quot;should have translation mode enabled by default&quot; do
-    assert @controller.globalize?
+    assert @controller.in_place_translations?
+  end
+
+  test &quot;globalize? deprecation&quot; do
+    assert_deprecated(&quot;You should use in_place_translations?&quot;){ @controller.globalize? }
   end
 
   test &quot;should return translated contents&quot; do
@@ -63,7 +67,7 @@ class AnApplicationControllerTest &lt; ActionController::TestCase
   end
 
   test &quot;should always render the action&quot; do
-    @controller.stubs(:globalize?).returns false
+    @controller.stubs(:in_place_translations?).returns false
 
     get :index, params
     assert_response :success</diff>
      <filename>test/functional/translations_controller_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -29,7 +29,7 @@ class ActionView::TestCase
       ActionView::Base.new.render options, extra_options, &amp;block
     end
 
-    def globalize?
-      ApplicationController.new.globalize?
+    def in_place_translations?
+      ApplicationController.new.in_place_translations?
     end
 end</diff>
      <filename>test/test_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>af269d1ac387d9c903eb18a821a90ec1dce53480</id>
    </parent>
  </parents>
  <author>
    <name>Luca Guidi</name>
    <email>guidi.luca@gmail.com</email>
  </author>
  <url>http://github.com/jodosha/click-to-globalize/commit/13b12711754b829867df55b8ecf7ecc8398d7118</url>
  <id>13b12711754b829867df55b8ecf7ecc8398d7118</id>
  <committed-date>2009-04-06T07:09:05-07:00</committed-date>
  <authored-date>2009-04-06T07:09:05-07:00</authored-date>
  <message>Deprecated globalize? in favor of in_place_translations?</message>
  <tree>5b4d6413f942050e0b1c274d35f933c9805562e0</tree>
  <committer>
    <name>Luca Guidi</name>
    <email>guidi.luca@gmail.com</email>
  </committer>
</commit>
