Flowdock. Choose a project. Rspec_icon_80. RSpec. Behaviour Driven Development framework for Ruby. 6 imported versions - 23 notes - Browse - Search ...
Link: apidock.com
This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here. These similar methods exist in v4.0.2: ActiveRecord::AttributeAssignment#assign_attributes
reset_pk_sequence! (table, pk = nil, sequence = nil) public Resets the sequence of a table’s primary key to the maximum value. Show source # File activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb, line 279 def reset_pk_sequence! ( table , pk = nil , se...
Add a prepare callback. Prepare callbacks are run before each request, prior to ActionDispatch::Callback’s before callbacks. Show source # File actionpack/lib/action_dispatch/middleware/reloader.rb, line 34 def self.to_prepare (* args , & block ) set_callback ( :prepare , * args , & b...
Truncates a given text after a given length if text is longer than length: ' Once upon a time in a world far far away '. truncate ( 27 ) # => "Once upon a time in a wo..." Pass a string or regexp :separator to truncate text at a natural break: ' Once upon a time in a world far far awa...
:words_connector - The sign or word used to join the elements in arrays with two or more elements (default: “, ”). :two_words_connector - The sign or word used to join the elements in arrays with two elements (default: “ and ”). :last_word_connector - The sign or word used to join the...
Wraps the current string in the ActiveSupport::StringInquirer class, which gives you a prettier way to test for equality. env = ' production '. inquiry env . production? # => true env . development? # => false Show source # File activesupport/lib/active_support/core_ext/string/inquiry...
check the query v component for RFC2396 compliance and against the URI::Parser Regexp for :QUERY Can not have a opaque component defined, with a query component defined. Show source # File lib/uri/generic.rb, line 882 def check_query ( v ) return v unless v # raise if both hier and op...
Specifies a many-to-many relationship with another class. This associates two classes via an intermediate join table. Unless the join table is explicitly specified as an option, it is guessed using the lexical order of the class names. So a join between Developer and Project will give...