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
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
gem 'rack', github: 'rack/rack' | |
gem 'pg' | |
GEMFILE | |
system 'bundle' |
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
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'arel', github: 'rails/arel' | |
gem 'rack', github: 'rack/rack' | |
gem 'i18n', github: 'svenfuchs/i18n' | |
gem 'public_activity', github: 'pokonski/public_activity' | |
gem 'sqlite3' | |
GEMFILE |
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
[{"id":100,"type":"hotel","title":"Hotel in London","start":"2014-10-02","end":"2014-10-05","url":"/en/trips/9/hotels/100/edit","editable":false,"backgroundColor":"#e4d3eb","borderColor":"#e4d3eb","textColor":"#000","className":"trip-hotel trip-item-100"}] |
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
unless File.exist?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails' | |
gem 'arel' | |
gem 'rack' | |
gem 'i18n' | |
gem 'sqlite3' | |
gem 'destroyed_at' | |
GEMFILE |
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
/* ### Transitions between Sections ##################################################################### */ | |
(function() { | |
// detect if IE : from http://stackoverflow.com/a/16657946 | |
var ie = (function(){ | |
var undef,rv = -1; // Return value assumes failure. | |
var ua = window.navigator.userAgent; | |
var msie = ua.indexOf('MSIE '); | |
var trident = ua.indexOf('Trident/'); | |
if (msie > 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
# RSpec | |
require 'spec/expectations' | |
# Webrat | |
require 'webrat' | |
require 'test/unit/assertions' | |
World(Test::Unit::Assertions) | |
Webrat.configure do |config| |
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
### User model ### | |
class User < ActiveRecord::Base | |
before_save :lower_email | |
def lower_email | |
self.email = email.downcase | |
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
GIT | |
remote: git://github.com/aslakhellesoy/cucumber-rails.git | |
revision: f3002faf12560dc7a7dc16cafb282ffbbf892029 | |
specs: | |
cucumber-rails (0.4.0.beta.1) | |
cucumber (~> 0.10.0) | |
nokogiri (~> 1.4.4) | |
rack-test (~> 0.5.6) | |
GIT |
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
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D | |
rails_env = ENV['RAILS_ENV'] || 'production' | |
before_exec do |server| | |
ENV["BUNDLE_GEMFILE"] = "#{rails_root}/Gemfile" | |
end | |
# 16 workers and 1 master | |
worker_processes (rails_env == 'production' ? 16 : 4) |
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/lib/carrierwave/uploader/processing.rb b/lib/carrierwave/uploader/processing.rb | |
index 7c37d5b..678c0e5 100644 | |
--- a/lib/carrierwave/uploader/processing.rb | |
+++ b/lib/carrierwave/uploader/processing.rb | |
@@ -8,7 +8,7 @@ module CarrierWave | |
include CarrierWave::Uploader::Callbacks | |
included do | |
- class_inheritable_accessor :processors, :instance_reader => false, :instance_writer => false | |
+ class_attribute :processors, :instance_writer => false |
OlderNewer