adds missing requires for Object#blank? and Object#present?

This commit is contained in:
Xavier Noria 2010-03-28 14:15:02 +02:00
parent 105f9b8154
commit 76f024ac8d
51 changed files with 69 additions and 0 deletions

View File

@ -2,6 +2,7 @@ require 'mail'
require 'action_mailer/tmail_compat'
require 'action_mailer/collector'
require 'active_support/core_ext/array/wrap'
require 'active_support/core_ext/object/blank'
module ActionMailer #:nodoc:
# Action Mailer allows you to send email from your application using a mailer model and views.

View File

@ -1,4 +1,5 @@
require 'active_support/core_ext/object/try'
require 'active_support/core_ext/object/blank'
module ActionMailer
module OldApi #:nodoc:

View File

@ -1,4 +1,5 @@
require 'active_support/base64'
require 'active_support/core_ext/object/blank'
module ActionController
module HttpAuthentication

View File

@ -1,4 +1,5 @@
require 'active_support/core_ext/class/attribute'
require 'active_support/core_ext/object/blank'
module ActionController
def self.add_renderer(key, &block)

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActionController
module Railties
class LogSubscriber < Rails::LogSubscriber

View File

@ -1,4 +1,5 @@
require 'rack/session/abstract/id'
require 'active_support/core_ext/object/blank'
module ActionController
module TemplateAssertions

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActionDispatch
module Http
module Cache

View File

@ -1,5 +1,6 @@
require 'set'
require 'active_support/core_ext/class/attribute_accessors'
require 'active_support/core_ext/object/blank'
module Mime
class Mimes < Array

View File

@ -1,5 +1,6 @@
require 'digest/md5'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/object/blank'
module ActionDispatch # :nodoc:
# Represents an HTTP response generated by a controller action. One can use

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActionDispatch
module Http
module UploadedFile

View File

@ -1,5 +1,6 @@
require 'rack/utils'
require 'rack/request'
require 'active_support/core_ext/object/blank'
module ActionDispatch
module Session

View File

@ -1,4 +1,5 @@
require 'active_support/core_ext/hash/keys'
require 'active_support/core_ext/object/blank'
module ActionDispatch
module Session

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActionDispatch
module Routing
class RouteSet

View File

@ -1,4 +1,5 @@
require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/object/blank'
module ActionDispatch
module Routing

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActionDispatch
class TestRequest < Request
DEFAULT_ENV = Rack::MockRequest.env_for('/')

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActionView
module Helpers
# CaptureHelper exposes methods to let you extract generated markup which

View File

@ -4,6 +4,7 @@ require 'action_view/helpers/tag_helper'
require 'action_view/helpers/form_tag_helper'
require 'active_support/core_ext/class/inheritable_attributes'
require 'active_support/core_ext/hash/slice'
require 'active_support/core_ext/object/blank'
module ActionView
module Helpers

View File

@ -1,6 +1,7 @@
require 'cgi'
require 'erb'
require 'action_view/helpers/form_helper'
require 'active_support/core_ext/object/blank'
module ActionView
module Helpers

View File

@ -1,6 +1,7 @@
require 'cgi'
require 'action_view/helpers/tag_helper'
require 'active_support/core_ext/object/returning'
require 'active_support/core_ext/object/blank'
module ActionView
module Helpers

View File

@ -1,5 +1,6 @@
require 'active_support/core_ext/big_decimal/conversions'
require 'active_support/core_ext/float/rounding'
require 'active_support/core_ext/object/blank'
module ActionView
module Helpers #:nodoc:

View File

@ -1,6 +1,7 @@
require 'set'
require 'active_support/json'
require 'active_support/core_ext/object/returning'
require 'active_support/core_ext/object/blank'
module ActionView
module Helpers

View File

@ -1,3 +1,4 @@
require 'active_support/core_ext/object/blank'
require 'set'
module ActionView

View File

@ -1,3 +1,4 @@
require 'active_support/core_ext/object/blank'
require 'action_view/helpers/tag_helper'
module ActionView

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActionView
# There's also a convenience method for rendering sub templates within the current controller that depends on a
# single object (we call this kind of sub templates for partials). It relies on the fact that partials should

View File

@ -1,3 +1,4 @@
require 'active_support/core_ext/object/blank'
require 'action_controller/test_case'
require 'action_view'

View File

@ -1,5 +1,6 @@
require 'active_support/core_ext/array/wrap'
require 'active_support/core_ext/string/inflections'
require 'active_support/core_ext/object/blank'
require 'active_support/ordered_hash'
module ActiveModel

View File

@ -1,5 +1,6 @@
require 'active_support/core_ext/array/wrap'
require "active_support/core_ext/module/anonymous"
require 'active_support/core_ext/object/blank'
module ActiveModel #:nodoc:
# A simple base class that can be used along with

View File

@ -1,5 +1,6 @@
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/enumerable'
require 'active_support/core_ext/object/blank'
module ActiveRecord
class InverseOfAssociationNotFoundError < ActiveRecordError #:nodoc:

View File

@ -1,4 +1,5 @@
require "active_record/associations/through_association_scope"
require 'active_support/core_ext/object/blank'
module ActiveRecord
module Associations

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveRecord
module AttributeMethods
module Dirty

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveRecord
module AttributeMethods
module Query

View File

@ -14,6 +14,7 @@ require 'active_support/core_ext/string/behavior'
require 'active_support/core_ext/object/singleton_class'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/object/duplicable'
require 'active_support/core_ext/object/blank'
require 'arel'
require 'active_record/errors'

View File

@ -1,3 +1,4 @@
require 'active_support/core_ext/object/blank'
require 'date'
require 'set'
require 'bigdecimal'

View File

@ -1,5 +1,6 @@
require 'active_record/connection_adapters/abstract_adapter'
require 'active_support/core_ext/kernel/requires'
require 'active_support/core_ext/object/blank'
require 'set'
module MysqlCompat #:nodoc:

View File

@ -1,5 +1,6 @@
require 'active_record/connection_adapters/abstract_adapter'
require 'active_support/core_ext/kernel/requires'
require 'active_support/core_ext/object/blank'
begin
require_library_or_gem 'pg'

View File

@ -4,6 +4,7 @@ require 'csv'
require 'zlib'
require 'active_support/dependencies'
require 'active_support/core_ext/logger'
require 'active_support/core_ext/object/blank'
if RUBY_VERSION < '1.9'
module YAML #:nodoc:

View File

@ -1,6 +1,7 @@
require 'active_support/core_ext/array'
require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/object/singleton_class'
require 'active_support/core_ext/object/blank'
module ActiveRecord
module NamedScope

View File

@ -1,5 +1,6 @@
require 'active_support/core_ext/hash/except'
require 'active_support/core_ext/object/try'
require 'active_support/core_ext/object/blank'
module ActiveRecord
module NestedAttributes #:nodoc:

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveRecord
class QueryCache
module ClassMethods

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveRecord
class Relation
JoinOperation = Struct.new(:relation, :join_class, :on)

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveRecord
module Batches # :nodoc:
# Yields each record that was found by the find +options+. The find is

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveRecord
module Calculations
# Count operates using three different approaches.

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveRecord
module FinderMethods
# Find operates with four different retrieval approaches:

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveRecord
module QueryMethods
extend ActiveSupport::Concern

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveRecord
module SpawnMethods
def merge(r)

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveRecord
# Allows programmers to programmatically define a schema in a portable
# DSL. This means you can define tables, indexes, etc. without using SQL

View File

@ -1,3 +1,5 @@
require 'active_support/core_ext/object/blank'
module ActiveResource
# A module to support custom REST methods and sub-resources, allowing you to break out
# of the "default" REST methods with your own custom resource requests. For example,

View File

@ -1,4 +1,5 @@
require 'active_support/core_ext/array/wrap'
require 'active_support/core_ext/object/blank'
module ActiveResource
class ResourceInvalid < ClientError #:nodoc:

View File

@ -1,4 +1,5 @@
require 'libxml'
require 'active_support/core_ext/object/blank'
# = XmlMini LibXML implementation using a SAX-based parser
module ActiveSupport

View File

@ -1,4 +1,5 @@
require 'nokogiri'
require 'active_support/core_ext/object/blank'
# = XmlMini Nokogiri implementation using a SAX-based parser
module ActiveSupport

View File

@ -1,5 +1,6 @@
require 'rails/generators/resource_helpers'
require 'rails/generators/rails/model/model_generator'
require 'active_support/core_ext/object/blank'
module Rails
module Generators