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
diff --git a/app/models/kid.rb b/app/models/kid.rb | |
index 0ad1f19..0b36aeb 100644 | |
--- a/app/models/kid.rb | |
+++ b/app/models/kid.rb | |
@@ -1182,6 +1182,7 @@ class Kid < ActiveRecord::Base | |
def initialize_paid_status | |
# send paid event to client | |
favor(WebpageCategory.find_by_name("Homework Helper")) | |
+ logger.info("DEBUG: #{connection.inspect}") | |
connection.with_master do |
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
diff --git a/app/models/kid.rb b/app/models/kid.rb | |
index 0ad1f19..0b36aeb 100644 | |
--- a/app/models/kid.rb | |
+++ b/app/models/kid.rb | |
@@ -1182,6 +1182,7 @@ class Kid < ActiveRecord::Base | |
def initialize_paid_status | |
# send paid event to client | |
favor(WebpageCategory.find_by_name("Homework Helper")) | |
+ logger.info("DEBUG: #{connection.inspect}") | |
connection.with_master do |
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
-- Create a gist from the specified text or the contents of the selected file | |
-- | |
-- Author: Brian Smith <bsmith@swig505.com> | |
using terms from application "Quicksilver" | |
on process text str | |
my growlRegister() | |
do shell script "echo '" & str & "' | /usr/local/bin/gist" | |
growlNotify("Gist Created!", "URL has been copied to clipboard") |
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
namespace :flex do | |
FLEX_SRC = File.join(Rails.root,"src") | |
FLEX_LIB = File.join(Rails.root,"vendor/lib") | |
FLEX_BIN = File.join(Rails.root,"public/assets") | |
desc "Compile the Flex app and run the test suite" | |
task :build => [:compile, :test] | |
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
FLEX_SRC = File.join(File.dirname(__FILE__), "src") | |
FLEX_LIB = File.join(File.dirname(__FILE__), "lib") | |
FLEX_BIN = File.join(File.dirname(__FILE__), "bin-debug") | |
task :default => [:compile, :run] | |
desc "Compile the Flex app" | |
task :compile do | |
Dir.chdir(FLEX_SRC) do | |
Dir["*.mxml"].each do |source_file| |
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
puts "This is a sample script/runner gist" |
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
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
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
$(document).ready(function(){ | |
// Add a favicon to all links with class name favicon | |
// | |
$("a.favicon").each(function() { | |
this.style.paddingLeft = '25px'; | |
this.style.background = 'transparent url(' + faviconFromLink(this) + ') no-repeat top left'; | |
}); | |
}); |
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
exception_class: NoMethodError | |
controller_name: socket7 | |
action_name: create_kid | |
message: "undefined method `shard_key' for nil:NilClass" | |
backtrace: [RAILS_ROOT]/app/models/tracker.rb:12:in `shard' | |
/usr/lib64/ruby/gems/1.8/gems/activerecord-distributed_mysql-adapter-0.1.0/lib/active_record/distributed_mysql_ext.rb:94:in `create_without_callbacks' | |
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/callbacks.rb:254:in `create_without_timestamps' | |
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/timestamp.rb:39:in `create_without_user' | |
[RAILS_ROOT]/vendor/plugins/userstamp/lib/userstamp.rb:36:in `create' | |
[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/base.rb:1777:in `create_or_update_without_callbacks' |
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
require 'yaml' | |
module Rails | |
module App | |
extend self | |
def [](key) | |
config[key] | |
end | |