- decreases startup time by not loading all your models
- makes it possible to preload config/environment.rb and still test models -> spin/zeus
- makes dependencies obvious
- replaces ActiveRecord magic with ruby
- makes your app Rails 4 ready
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
--compilers js:./test/support/compiler | |
--require ./test/support/init |
Below are steps I followed to get ruby debugger ruby-debug
running with Pow. Based on info from this thread basecamp/pow#43 and this blog post http://flochip.com/2011/04/13/running-pow-with-rdebug/
Assuming you're writing your app in Ruby 1.9 and using Bundler, just add the dependency to your development gems:
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 'tire' | |
require 'active_support/core_ext/numeric' | |
require 'active_support/core_ext/time/zones' | |
# Tire.configure { logger STDERR, level: 'debug' } | |
class Time; DATE_FORMATS.update lucene: "%Y-%m-%dT%H:%M"; end | |
Tire.index 'venues' 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
require 'rubygems' | |
require 'api_smith' | |
require 'date' | |
require 'ipaddr' | |
module GettinClickyWithIt | |
class Error < StandardError; end | |
SMART_NUMBER_TRANSFORMER = lambda { |v| Integer(v) rescue v } |