sanitize_sql_hash_for_assignment

sanitize_sql_hash_for_assignment(attrs, table) Instance Protected methods Sanitizes a hash of attribute/value pairs into SQL conditions for a SET clause. { status: nil, group_id: 1 } # => "status = NULL , group_id = 1"

trace_delete

trace_delete(opts,cmd) Instance Public methods Alias for: trace_remove

link_to_if

link_to_if(condition, name, options = {}, html_options = {}, &block) Instance Public methods Creates a link tag of the given name using a URL created by the set of options if condition is true, otherwise only the name is returned. To specialize the default behavior, you can pass a block that accepts the name or the full argument list for link_to_unless (see the examples in link_to_unless). Examples <%= link_to_if(@current_user.nil?, "Login", { controller: "sessions", action:

check_that_user_bin_dir_is_in_path

check_that_user_bin_dir_is_in_path() Instance Public methods DOC: Missing docs or :nodoc:.

filter_backtrace

filter_backtrace(array) Class Public methods

configure

configure(*args) Instance Public methods

cget_strict

cget_strict(option) Instance Public methods

new

new(keys=nil, &b) Class Public methods

valid?

valid?(context = nil) Instance Public methods Runs all the specified validations and returns true if no errors were added otherwise false. class Person include ActiveModel::Validations attr_accessor :name validates_presence_of :name end person = Person.new person.name = '' person.valid? # => false person.name = 'david' person.valid? # => true Context can optionally be supplied to define which callbacks to test against (the context is defined on the validations using

sortByColumn_with_event_generate

sortByColumn_with_event_generate(idx) Instance Public methods