Module: ActiveSupport

Defined in:
lib/gems/activesupport-2.2.2/lib/active_support/multibyte.rb,
lib/gems/activesupport-2.2.2/lib/active_support/gzip.rb,
lib/gems/activesupport-2.2.2/lib/active_support/json.rb,
lib/gems/activesupport-2.2.2/lib/active_support/cache.rb,
lib/gems/activesupport-2.2.2/lib/active_support/base64.rb,
lib/gems/activesupport-2.2.2/lib/active_support/version.rb,
lib/gems/activesupport-2.2.2/lib/active_support/duration.rb,
lib/gems/activesupport-2.2.2/lib/active_support/callbacks.rb,
lib/gems/activesupport-2.2.2/lib/active_support/inflector.rb,
lib/gems/activesupport-2.2.2/lib/active_support/rescuable.rb,
lib/gems/activesupport-2.2.2/lib/active_support/test_case.rb,
lib/gems/activesupport-2.2.2/lib/active_support/memoizable.rb,
lib/gems/activesupport-2.2.2/lib/active_support/deprecation.rb,
lib/gems/activesupport-2.2.2/lib/active_support/inflections.rb,
lib/gems/activesupport-2.2.2/lib/active_support/basic_object.rb,
lib/gems/activesupport-2.2.2/lib/active_support/dependencies.rb,
lib/gems/activesupport-2.2.2/lib/active_support/ordered_hash.rb,
lib/gems/activesupport-2.2.2/lib/active_support/json/decoding.rb,
lib/gems/activesupport-2.2.2/lib/active_support/json/encoding.rb,
lib/gems/activesupport-2.2.2/lib/active_support/json/variable.rb,
lib/gems/activesupport-2.2.2/lib/active_support/option_merger.rb,
lib/gems/activesupport-2.2.2/lib/active_support/secure_random.rb,
lib/gems/activesupport-2.2.2/lib/active_support/time_with_zone.rb,
lib/gems/activesupport-2.2.2/lib/active_support/buffered_logger.rb,
lib/gems/activesupport-2.2.2/lib/active_support/cache/drb_store.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module.rb,
lib/gems/activesupport-2.2.2/lib/active_support/multibyte/chars.rb,
lib/gems/activesupport-2.2.2/lib/active_support/ordered_options.rb,
lib/gems/activesupport-2.2.2/lib/active_support/string_inquirer.rb,
lib/gems/activesupport-2.2.2/lib/active_support/testing/default.rb,
lib/gems/activesupport-2.2.2/lib/active_support/cache/file_store.rb,
lib/gems/activesupport-2.2.2/lib/active_support/values/time_zone.rb,
lib/gems/activesupport-2.2.2/lib/active_support/cache/memory_store.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/exception.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/diff.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/keys.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/float/time.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/slice.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/load_error.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/time/zones.rb,
lib/gems/activesupport-2.2.2/lib/active_support/testing/performance.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/file/atomic.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/except.rb,
lib/gems/activesupport-2.2.2/lib/active_support/json/encoders/string.rb,
lib/gems/activesupport-2.2.2/lib/active_support/multibyte/exceptions.rb,
lib/gems/activesupport-2.2.2/lib/active_support/cache/mem_cache_store.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/array/access.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/integer/time.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/numeric/time.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date/behavior.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/numeric/bytes.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/access.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/time/behavior.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/array/grouping.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/float/rounding.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/range/overlaps.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/filters.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/base64/encoding.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/deep_merge.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/aliasing.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/behavior.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date/conversions.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/conversions.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/integer/even_odd.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/iterators.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/multibyte.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/time/conversions.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/array/conversions.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date/calculations.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/range/conversions.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/time/calculations.rb,
lib/gems/activesupport-2.2.2/lib/active_support/multibyte/unicode_database.rb,
lib/gems/activesupport-2.2.2/lib/active_support/testing/setup_and_teardown.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/reverse_merge.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/conversions.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/inflections.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/array/random_access.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/integer/inflections.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/model_naming.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/numeric/conversions.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/range/include_range.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/module/introspection.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/range/blockless_step.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/array/extract_options.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date_time/conversions.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/pathname/clean_within.rb,
lib/gems/activesupport-2.2.2/lib/active_support/cache/synchronized_memory_store.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/bigdecimal/conversions.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date_time/calculations.rb,
lib/gems/activesupport-2.2.2/lib/active_support/cache/compressed_mem_cache_store.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/hash/indifferent_access.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/string/starts_ends_with.rb,
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Base64, Cache, Callbacks, CoreExtensions, Dependencies, Deprecation, Gzip, Inflector, JSON, Memoizable, Multibyte, Rescuable, SecureRandom, Testing, VERSION Classes: BasicObject, BufferedLogger, Duration, ModelName, OptionMerger, OrderedHash, OrderedOptions, StringInquirer, TestCase, TimeWithZone, TimeZone

Constant Summary collapse

FrozenObjectError =
TypeError

Class Method Summary collapse

Class Method Details

.escape_html_entities_in_jsonObject



6
7
8
# File 'lib/gems/activesupport-2.2.2/lib/active_support/json.rb', line 6

def escape_html_entities_in_json
  @escape_html_entities_in_json
end

.escape_html_entities_in_json=(value) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/gems/activesupport-2.2.2/lib/active_support/json.rb', line 10

def escape_html_entities_in_json=(value)
  ActiveSupport::JSON::Encoding.escape_regex = \
    if value
      /[\010\f\n\r\t"\\><&]/
    else
      /[\010\f\n\r\t"\\]/
    end
  @escape_html_entities_in_json = value
end