begin_isolated_db_transaction

begin_isolated_db_transaction(isolation) Instance Public methods

csrf_meta_tags

csrf_meta_tags() Instance Public methods Returns meta tags âcsrf-paramâ and âcsrf-tokenâ with the name of the cross-site request forgery protection parameter and token, respectively. <head> <%= csrf_meta_tags %> </head> These are used to generate the dynamic forms that implement non-remote links with :method. You don't need to use these tags for regular forms as they generate their own hidden fields. For AJAX requests other than GETs, extract the âcsrf-tokenâ fr

supports_statement_cache?

supports_statement_cache?() Instance Public methods Returns true, since this connection adapter supports prepared statement caching.

conditional_hello_with_public_header_and_expires_at

conditional_hello_with_public_header_and_expires_at() Instance Public methods

next_week

next_week(given_day_in_next_week = Date.beginning_of_week) Instance Public methods Returns a new date/time representing the given day in the next week. The given_day_in_next_week defaults to the beginning of the week which is determined by Date.beginning_of_week or config.beginning_of_week when set. DateTime objects have their time set to 0:00.

clear_helpers

clear_helpers() Instance Public methods Clears up all existing helpers in this class, only keeping the helper with the same name as this class.

set_expected_mail

set_expected_mail() Instance Protected methods

register_preview_interceptor

register_preview_interceptor(interceptor) Instance Public methods Register an Interceptor which will be called before mail is previewed. Either a class or a string can be passed in as the Interceptor. If a string is passed in it will be constantized.

base_root

base_root() Class Public methods Returns the base root for a common set of generators. This is used to dynamically guess the default source root.

code

code() Instance Public methods Returns a string to ensure compatibility with Net::HTTPResponse.