index_exists?

index_exists?(column_name, options = {}) Instance Public methods Checks to see if an index exists. See ActiveRecord::ConnectionAdapters::SchemaStatements#index_exists?

find_type

find_type(field) Class Public methods

git

git(commands={}) Instance Public methods Run a command in git. git :init git add: "this.file that.rb" git add: "onefile.rb", rm: "badfile.cxx"

dirname

dirname() Class Public methods Returns the directory in which the data files are stored.

action_methods 2

action_methods() Instance Public methods Delegates to the class' action_methods

path=

path=(path) Instance Public methods

order

order(*args) Instance Public methods Allows to specify an order attribute: User.order('name') => SELECT "users".* FROM "users" ORDER BY name User.order('name DESC') => SELECT "users".* FROM "users" ORDER BY name DESC User.order('name DESC, email') => SELECT "users".* FROM "users" ORDER BY name DESC, email User.order(:name) => SELECT "users".* FROM "users" ORDER BY "users"."name" ASC User.order(email: :desc) => SELECT "users".* FROM "users" ORDER BY "users"."email

new

new(record, attribute) Class Public methods

stale?

stale?(record_or_options, additional_options = {}) Instance Public methods Sets the etag and/or last_modified on the response and checks it against the client request. If the request doesn't match the options provided, the request is considered stale and should be generated from scratch. Otherwise, it's fresh and we don't need to generate anything and a reply of 304 Not Modified is sent. Parameters: :etag. :last_modified. :public By default the Cache-Control header is private,

add_stmt

add_stmt(src, code) Instance Public methods