Write a good commit message.
[#123] Summary of changes under 50 characters
* More information about commit (under 72 characters)
* More information about commit (under 72 characters)
Rfm::Base.setup do |config| # in initializer folder | |
config.host 'my.host.name', 20000 | |
config.auth 'account', 'password' | |
config.pem 'path/to/pem_file.pem' | |
config.database 'company_database' | |
end | |
Rfm::Base.host = 'my.diff_host.name' # can be overridden individually | |
class FmUser < Rfm::Base |
Failures: | |
1) UsersController#index returns a paginated collection | |
Failure/Error: assigns[:users].should be_an_instance_of(WillPaginate::Collection) | |
expected [#<User id: 1, name: "name-1", created_at: "2010-11-08 17:20:42", updated_at: "2010-11-08 17:20:42">, #<User id: 2, name: "name-2", created_at: "2010-11-08 17:20:42", updated_at: "2010-11-08 17:20:42">, #<User id: 3, name: "name-3", created_at: "2010-11-08 17:20:42", updated_at: "2010-11-08 17:20:42">, #<User id: 4, name: "name-4", created_at: "2010-11-08 17:20:42", updated_at: "2010-11-08 17:20:42">, #<User id: 5, name: "name-5", created_at: "2010-11-08 17:20:42", updated_at: "2010-11-08 17:20:42">] to be an instance of WillPaginate::Collection | |
# /Users/lar/.rvm/gems/ruby-1.9.2-p0@rspec_bug/gems/rspec-expectations-2.1.0/lib/rspec/expectations/fail_with.rb:29:in `fail_with' | |
# /Users/lar/.rvm/gems/ruby-1.9.2-p0@rspec_bug/gems/rspec-expectations-2.1.0/lib/rspec/expectations/handler.rb:21:in `handle_matcher' | |
# /Users/lar/.rvm/gems/ |
class Joins < ActiveRecord::Base | |
belongs_to :parent | |
belongs_to :child | |
validates_presence_of :parent_id, :child_id | |
end | |
class Parent < ActiveRecord::Base | |
has_many :joins | |
has_many :children, |
(in /Users/lar/Sites/formtastic) | |
.............................................................................................................................................................................................................FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................FF.FFFF..FF..............FF......................... | |
Failures: | |
1) check_boxes input for a has_many association should have input wrapper with class 'check_boxes' |
module Sunspot | |
module Search | |
class AbstractSearch | |
private | |
def maybe_will_paginate(collection) | |
collection.instance_eval <<-RUBY, __FILE__, __LINE__ + 1 | |
def current_page | |
#{@query.page} |
Write a good commit message.
[#123] Summary of changes under 50 characters
* More information about commit (under 72 characters)
* More information about commit (under 72 characters)
$(document).ready(function() { | |
// Support for AJAX loaded modal window. | |
// Focuses on first input textbox after it loads the window. | |
$('[data-toggle="modal"]').click(function(e) { | |
e.preventDefault(); | |
var url = $(this).attr('href'); | |
if (url.indexOf('#') == 0) { | |
$(url).modal('open'); | |
} else { |
<% if lookup_context.template_exists?("custom_header/#{@object.key}", 'parent_path', true) %> | |
<%= render "custom_header/#{@object.key}" %> | |
<% else %> | |
Stock header | |
<% end %> |
desc "Kill resque workers" | |
task :kill_processes, :roles => :god, :on_no_matching_servers => :continue do | |
run "cd #{deploy_to}/current && rake resque:restart_workers RAILS_ENV=#{rails_env}" do |ch, stream, data| | |
puts data | |
end | |
end | |
end |