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/public_body.rb b/app/models/public_body.rb | |
index 03b009023..0446cf51c 100644 | |
--- a/app/models/public_body.rb | |
+++ b/app/models/public_body.rb | |
@@ -113,7 +113,7 @@ class PublicBody < ActiveRecord::Base | |
[:created_at_numeric, 1, "created_at", :number] | |
], | |
:terms => [ | |
- [:name_for_search, 'N', 'name'], | |
+ [:name_for_search, 'N', 'name', 50], |
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' | |
prefork = lambda { | |
ENV["RAILS_ENV"] ||= 'test' | |
require File.expand_path("../../config/environment", __FILE__) | |
require 'rspec/rails' | |
} | |
each_run = lambda { | |
... |
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
$ cd Sites/ | |
$ mkdir spree-test | |
$ cd spree-test/ | |
$ rvm --rvmrc --create gemset use spree-test | |
$ gem install spree -v 1.1.2 | |
[snip] | |
$ rails new . | |
[snip] |
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
<?php | |
global $prefs; | |
$prefs['l10n_language_marker_func'] = 'gbp_language_marker'; | |
function gbp_language_marker($long) { | |
switch ($long) { | |
case 'en-gb': return 'uk/en'; | |
break; | |
case 'en-us': return 'usa/en'; | |
break; |
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 svn clone --revision 3226:HEAD --authors-file=../core-users.txt --trunk=development/4.x --branches=development/* --tags=releases/* http://textpattern.googlecode.com/svn ../tmp | |
git remote add tmp ../tmp | |
git fetch tmp | |
git status | |
git cherry-pick 2ab88af5f8eed943dc53d269f1c114e4d188dbbb | |
git remote rm tmp | |
rm -rf ../tmp |
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 ApplicationHelper | |
class RenderWrap | |
def self.bind(caller, wrap, &block) | |
ERB.new(wrap).result(caller.instance_eval { binding(&block) }) | |
end | |
end | |
def render(*args) | |
options = args.extract_options!.clone | |
collection = args.flatten |