eager_load

eager_load(*args) Instance Public methods Forces eager loading by performing a LEFT OUTER JOIN on args: User.eager_load(:posts) => SELECT "users"."id" AS t0_r0, "users"."name" AS t0_r1, ... FROM "users" LEFT OUTER JOIN "posts" ON "posts"."user_id" = "users"."id"

notify_install_event

notify_install_event(event, percents_cmd=nil, &b) Instance Public methods

joins_per_query

joins_per_query() Instance Public methods Returns maximum number of joins in a single query.

transformNode

transformNode(arg0) Instance Public methods BSTR transformNode apply the stylesheet to the subtree IXMLDOMNode arg0 --- stylesheet [IN]

singleline_pp

singleline_pp(obj, out=$>) Class Public methods Outputs obj to out like ::pp but with no indent and newline. ::singleline_pp returns out.

current_window_configinfo

current_window_configinfo(tagOrId, slot=nil) Instance Public methods

location

location(x=None, y=None) Class Public methods

attribute_method?

attribute_method?(attribute) Instance Public methods Returns true if attribute is an attribute method and table exists, false otherwise. class Person < ActiveRecord::Base end Person.attribute_method?('name') # => true Person.attribute_method?(:age=) # => true Person.attribute_method?(:nothing) # => false

hash

hash() Instance Public methods Delegates to id in order to allow two records of the same type and id to work with something like: [ Person.find(1), Person.find(2), Person.find(3) ] & [ Person.find(1), Person.find(4) ] # => [ Person.find(1) ]

authenticate

authenticate(unencrypted_password) Instance Public methods Returns self if the password is correct, otherwise false. class User < ActiveRecord::Base has_secure_password validations: false end user = User.new(name: 'david', password: 'mUc3m00RsqyRe') user.save user.authenticate('notright') # => false user.authenticate('mUc3m00RsqyRe') # => user