aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-08-29 08:24:04 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-08-29 08:24:04 +0000
commit965ae90bc6ff63c4aeee81cbc2137d8d7ef5ccdc (patch)
tree11796161d2f7d5c51f9626c4acbeb4ac34cb1215 /activesupport/lib
parent06a731e365011715759f46a09cb726b9f0350d00 (diff)
downloadrails-965ae90bc6ff63c4aeee81cbc2137d8d7ef5ccdc.tar.gz
rails-965ae90bc6ff63c4aeee81cbc2137d8d7ef5ccdc.tar.bz2
rails-965ae90bc6ff63c4aeee81cbc2137d8d7ef5ccdc.zip
Eliminate Active Support warnings.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4839 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support.rb2
-rw-r--r--activesupport/lib/active_support/core_ext/module/attr_internal.rb4
-rw-r--r--activesupport/lib/active_support/deprecation.rb1
-rw-r--r--activesupport/lib/active_support/vendor/builder/xmlbase.rb2
4 files changed, 5 insertions, 4 deletions
diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb
index 0c0762ad8e..4289e57865 100644
--- a/activesupport/lib/active_support.rb
+++ b/activesupport/lib/active_support.rb
@@ -39,4 +39,4 @@ require 'active_support/option_merger'
require 'active_support/values/time_zone'
-require 'active_support/json' \ No newline at end of file
+require 'active_support/json'
diff --git a/activesupport/lib/active_support/core_ext/module/attr_internal.rb b/activesupport/lib/active_support/core_ext/module/attr_internal.rb
index c793da7159..7f2fb9641b 100644
--- a/activesupport/lib/active_support/core_ext/module/attr_internal.rb
+++ b/activesupport/lib/active_support/core_ext/module/attr_internal.rb
@@ -15,8 +15,8 @@ class Module
# Declare attributes backed by 'internal' instance variables names.
def attr_internal_accessor(*attrs)
- attr_internal_reader *attrs
- attr_internal_writer *attrs
+ attr_internal_reader(*attrs)
+ attr_internal_writer(*attrs)
end
alias_method :attr_internal, :attr_internal_accessor
diff --git a/activesupport/lib/active_support/deprecation.rb b/activesupport/lib/active_support/deprecation.rb
index 99c27ee9d1..99dbad1f7e 100644
--- a/activesupport/lib/active_support/deprecation.rb
+++ b/activesupport/lib/active_support/deprecation.rb
@@ -18,6 +18,7 @@ module ActiveSupport
# Have deprecations been silenced?
def silenced?
+ @silenced = false unless defined?(@silenced)
@silenced
end
diff --git a/activesupport/lib/active_support/vendor/builder/xmlbase.rb b/activesupport/lib/active_support/vendor/builder/xmlbase.rb
index 950d5891e1..b0485636ea 100644
--- a/activesupport/lib/active_support/vendor/builder/xmlbase.rb
+++ b/activesupport/lib/active_support/vendor/builder/xmlbase.rb
@@ -53,7 +53,7 @@ module Builder
unless text.nil?
raise ArgumentError, "XmlMarkup cannot mix a text argument with a block"
end
- _capture_outer_self(block) if @self.nil?
+ _capture_outer_self(block) unless defined?(@self) && !@self.nil?
_indent
_start_tag(sym, attrs)
_newline