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
# Step 1: you need to add the files in say "app/overrides", ie: "/app/overrides/insert_this_here.rb" | |
# Step 2: add that in your application.rb to load them (and decorators) | |
config.to_prepare do | |
# Load application's model / class decorators (optional for Deface, but you should have it in your app if you use Spree AFAIK. | |
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c| | |
Rails.configuration.cache_classes ? require(c) : load(c) | |
end | |
# Load application's view overrides | |
Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/*.rb")) do |c| |
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
#!/bin/bash | |
# | |
# Install Postgres 9.1, PostGIS 2.0 and pgRouting on a clean Ubuntu 12.04 install (64 bit) | |
# updated to PostGIS 2.0.1 | |
# basics | |
apt-get install python-software-properties | |
apt-add-repository ppa:sharpie/for-science # To get GEOS 3.3.3 | |
apt-get update |