This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if =~ 'Danny String' | |
require "weirdness #{@obj.name} here" | |
else | |
require 'something not awesome' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Objekt | |
attr_accessor :symbol | |
def symbol_updater(symbol, value) | |
symbol.to_sym = value | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
unless Rails.application.config.consider_all_requests_local | |
rescue_from ActionController::RoutingError, | |
ActionController::UnknownController, | |
::AbstractController::ActionNotFound, | |
ActiveRecord::RecordNotFound, | |
with: not_found | |
end | |
protect_from_forgery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select a.account_id, c.fed_id, e.fname, e.lname | |
from account a inner join customer c | |
on a.cust_id = c.cust_id | |
inner join employee e | |
on a.open_emp_id = e.emp_id | |
where c.cust_type_cd = 'B'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Application | |
[PROJECT_ROOT]/lib/tasks/abandoned_cart_reminders.rake:5:in `block (2 levels) in <top (required)>` | |
[PROJECT_ROOT]/lib/tasks/abandoned_cart_reminders.rake:4:in `block in <top (required)>` | |
Full | |
[PROJECT_ROOT]/lib/tasks/abandoned_cart_reminders.rake:5:in `block (2 levels) in <top (required)>` | |
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.14/lib/active_record/relation/delegation.rb:6:in `each` | |
[PROJECT_ROOT]/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.14/lib/active_record/relation/delegation.rb:6:in `each` | |
[PROJECT_ROOT]/lib/tasks/abandoned_cart_reminders.rake:4:in `block in <top (required)>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
include Spree::Core::ControllerHelpers::Common | |
protect_from_forgery | |
unless Rails.application.config.consider_all_requests_local | |
rescue_from ActiveRecord::RecordNotFound, | |
ActionController::RoutingError, | |
ActionController::UnknownController, | |
ActionController::UnknownAction, | |
ActionController::MethodNotAllowed do |exception| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Recurly::Transaction::DeclinedError: Your transaction was declined due to insufficient funds in your account. Please use a different card or contact your bank.> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Quarterly | |
class GiftIssueToggle | |
def initialize(issue) | |
@issue = issue | |
clear_gifts_for_plan | |
end | |
def set_current | |
Quarterly::Issue.find(@issue.id).update_attribute(:gift, true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failures: | |
1) Quarterly::SubscriptionPlan services #to_csv generates a csv of active subscribers with 3 columns | |
Failure/Error: expect{ column.count }.to eq(3) | |
expected: 3 | |
got: #<Proc:0x007fd91bd41ba0@/Users/cannonball/src/quarterly/spec/models/quarterly/subscription_plan_spec.rb:123> | |
(compared using ==) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
01:17:21 worker.1 | [Worker(host:cannonball pid:53409)] Job Quarterly::SunsetContributorJob (id=10787) RUNNING | |
01:17:21 worker.1 | [Worker(host:cannonball pid:53409)] Job Quarterly::SunsetContributorJob (id=10787) FAILED (0 prior attempts) with ActiveRecord::RecordNotFound: Couldn't find Quarterly::SubscriptionPlan without an ID | |
01:17:21 worker.1 | [Worker(host:cannonball pid:53409)] Job Quarterly::SunsetContributorJob (id=10787) REMOVED permanently because of 1 consecutive failures | |
01:17:21 worker.1 | [Worker(host:cannonball pid:53409)] 1 jobs processed at 71.8184 j/s, 1 failed |