compute_asset_host

compute_asset_host(source = "", options = {}) Instance Public methods Pick an asset host for this source. Returns nil if no host is set, the host if no wildcard is set, the host interpolated with the numbers 0-3 if it contains %d (the number is the source hash mod 4), or the value returned from invoking call on an object responding to call (proc or otherwise).

deep_symbolize_keys

deep_symbolize_keys() Instance Public methods

_status_code

_status_code() Instance Public methods

new

new(env) Class Public methods

url_to_image

url_to_image(source, options = {}) Instance Public methods Alias for: image_url

create

create(*arguments) Instance Public methods

call

call(email) Class Public methods Returns the mail object for the given email name. The registered preview interceptors will be informed so that they can transform the message as they would if the mail was actually being delivered.

limit

limit(value) Instance Public methods Specifies a limit for the number of records to retrieve. User.limit(10) # generated SQL has 'LIMIT 10' User.limit(10).limit(20) # generated SQL has 'LIMIT 20'

fallbacks

fallbacks() Class Public methods Hold configured generators fallbacks. If a plugin developer wants a generator group to fallback to another group in case of missing generators, they can add a fallback. For example, shoulda is considered a test_framework and is an extension of test_unit. However, most part of shoulda generators are similar to test_unit ones. Shoulda then can tell generators to search for test_unit generators when some of them are not available by adding a fallback:

audio_url

audio_url(source, options = {}) Instance Public methods Computes the full URL to an audio asset in the public audios directory. This will use audio_path internally, so most of their behaviors will be the same. url_to_audio