teardown

teardown(*args, &block) Instance Public methods Add a callback, which runs after TestCase#teardown.

to_xml

to_xml(options = {}) Instance Public methods Returns a string that represents the array in XML by invoking to_xml on each element. Active Record collections delegate their representation in XML to this method. All elements are expected to respond to to_xml, if any of them does not then an exception is raised. The root node reflects the class name of the first element in plural if all elements belong to the same type and that's not Hash: customer.projects.to_xml <?xml version="1

validates_uniqueness_of

validates_uniqueness_of(*attr_names) Instance Public methods Validates whether the value of the specified attributes are unique across the system. Useful for making sure that only one user can be named âdavidhhâ. class Person < ActiveRecord::Base validates_uniqueness_of :user_name end It can also validate whether the value of the specified attributes are unique based on a :scope parameter: class Person < ActiveRecord::Base validates_uniqueness_of :user_name, scope: :acco

etag

etag(&etagger) Instance Public methods Allows you to consider additional controller-wide information when generating an etag. For example, if you serve pages tailored depending on who's logged in at the moment, you may want to add the current user id to be part of the etag to prevent authorized displaying of cached pages. class InvoicesController < ApplicationController etag { current_user.try :id } def show # Etag will differ even for the same invoice when it's vie

parse_entries

parse_entries() Instance Public methods Parses the entries in the ChangeLog. Returns an Array of each ChangeLog entry in order of parsing. A ChangeLog entry is an Array containing the ChangeLog title (date and committer) and an Array of ChangeLog items (file and function changed with description). An example result would be: [ 'Tue Dec 4 08:33:46 2012 Eric Hodel <drbrain@segment7.net>', [ 'README.EXT: Converted to RDoc format', 'README.EXT.ja: ditto']]

__create_trusted_slave_obj

__create_trusted_slave_obj(name, keys) Instance Public methods

type_cast

type_cast(value) Instance Public methods

exists?

exists?() Instance Public methods Alias for: existing_migration

start 2

start(helo = 'localhost', user = nil, secret = nil, authtype = nil) Instance Public methods Opens a TCP connection and starts the SMTP session. Parameters helo is the HELO domain that you'll dispatch mails from; see the discussion in the overview notes. If both of user and secret are given, SMTP authentication will be attempted using the AUTH command. authtype specifies the type of authentication to attempt; it must be one of :login, :plain, and :cram_md5. See the notes on SMTP A

-

ptr - n => new cptr Instance Public methods Returns a new pointer instance that has been moved back n bytes.