mark_for_destruction

mark_for_destruction() Instance Public methods Marks this record to be destroyed as part of the parents save transaction. This does not actually destroy the record instantly, rather child record will be destroyed when parent.save is called. Only useful if the :autosave option on the parent is enabled for this associated model.

set_last_value

set_last_value(value) Instance Public methods Sets the return value from the last statement evaluated in this context to last_value. _set_last_value

doc_dir

doc_dir(type = nil) Instance Public methods Returns the full path to this spec's documentation directory. If type is given it will be appended to the end. For examlpe: spec.doc_dir # => "/path/to/gem_repo/doc/a-1" spec.doc_dir 'ri' # => "/path/to/gem_repo/doc/a-1/ri"

create_entries

create_entries(entries) Instance Public methods Returns a list of ChangeLog entries an RDoc::Markup nodes for the given entries.

not_available

not_available() Class Public methods

column

column(master, index, keys=nil) Class Public methods

pluralize

pluralize(count, singular, plural = nil) Instance Public methods Attempts to pluralize the singular word unless count is 1. If plural is supplied, it will use that when count is > 1, otherwise it will use the Inflector to determine the plural form. pluralize(1, 'person') # => 1 person pluralize(2, 'person') # => 2 people pluralize(3, 'person', 'users') # => 3 users pluralize(0, 'person') # => 0 people

add_expr_literal

add_expr_literal(src, code) Instance Public methods

permit!

permit!() Instance Public methods Sets the permitted attribute to true. This can be used to pass mass assignment. Returns self. class Person < ActiveRecord::Base end params = ActionController::Parameters.new(name: 'Francesco') params.permitted? # => false Person.new(params) # => ActiveModel::ForbiddenAttributesError params.permit! params.permitted? # => true Person.new(params) # => #<Person id: nil, name: "Francesco">

butPress

butPress(w,color) Instance Public methods Method that's invoked when the button embedded in the canvas is invoked.