scoping() Instance Public methods Scope all queries to the current scope. Comment.where(post_id: 1).scoping do Comment.first end # => SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 ORDER BY "comments"."id" ASC LIMIT 1 Please check unscoped if you want to remove all previous scopes (including the default_scope) during the execution of a block.
reqwidth(win) Class Public methods
==(p1) Instance Public methods Alias for: eql?
ssl.sysclose => nil Instance Public methods Shuts down the SSL connection and prepares it for another connection.
_get_eval_enc_str(p1) Instance Public methods
new(unknown) Class Public methods Create a new DRbUnknownError for the DRb::DRbUnknown object unknown
mtch.captures â array Instance Public methods Returns the array of captures; equivalent to mtch.to_a[1..-1]. f1,f2,f3,f4 = /(.)(.)(\d+)(\d)/.match("THX1138.").captures f1 #=> "H" f2 #=> "X" f3 #=> "113" f4 #=> "8"
def_unknown_proc(cmd=Proc.new) Instance Public methods
__destroy_hook__() Instance Public methods
encode_credentials(user_name, password) Instance Public methods
Page 947 of 2275