enlist_fixture_connections

enlist_fixture_connections() Instance Public methods

before

before(*args, &block) Class Public methods

new

new(secret, options = {}) Class Public methods

new

new(level = DEBUG) Class Public methods

partial

partial() Instance Public methods

request_http_token_authentication

request_http_token_authentication(realm = "Application") Instance Public methods

find

find(*args, &block) Instance Public methods Finds an object in the collection responding to the id. Uses the same rules as ActiveRecord::Base.find. Returns ActiveRecord::RecordNotFound error if the object cannot be found. class Person < ActiveRecord::Base has_many :pets end person.pets # => [ # #<Pet id: 1, name: "Fancy-Fancy", person_id: 1>, # #<Pet id: 2, name: "Spook", person_id: 1>, # #<Pet id: 3, name: "Choo-Choo", person_id: 1>

current_cycle

current_cycle(name = "default") Instance Public methods Returns the current cycle string after a cycle has been started. Useful for complex table highlighting or any other design need which requires the current cycle string in more than one place. # Alternate background colors @items = [1,2,3,4] <% @items.each do |item| %> <div style="background-color:<%= cycle("red","white","blue") %>"> <span style="background-color:<%= current_cycle %>"><%=

find_one

find_one(id) Instance Protected methods

decrement

decrement(attribute, by = 1) Instance Public methods Initializes attribute to zero if nil and subtracts the value passed as by (default is 1). The decrement is performed directly on the underlying attribute, no setter is invoked. Only makes sense for number-based attributes. Returns self.