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
class ApplicationController < ActionController::Base | |
include MemoryUsageLogger | |
# the rest of your code | |
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
class ApplicationController < ActionController::Base | |
session :off, :if => Proc.new { |req| req.headers["User-Agent"].match(/ia_archiver/) } | |
# … other code | |
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
if @location.precision == 'country' and ['UK', 'US'].include? @location.country_code | |
redirect_to '/' | |
flash[:message] = 'Please narrow your search criteria!' | |
return | |
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
class << ActiveRecord::Base | |
def each(limit = 1000) | |
rows = find(:all, :conditions => ["id > ?", 0], :limit => limit) | |
until rows.blank? | |
rows.each { |record| yield record } | |
rows = find(:all, :conditions => ["id > ?", rows.last.id], :limit => limit) | |
end | |
self | |
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
If you're going to keep the stripes I think you should subdue them, they lessen the impact of the text. If anything you should shorten the bio and make the text larger. And I don't think you need anything in place of the triangle. IMO :) |
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
* Domain name | |
* Company name | |
* City | |
* State | |
* Country | |
* Contact email address |
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
# Put this as the bottom of your environment.rb file | |
ActionController::Base.asset_host = collectionname.cloudfront.net |
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
Dear William | |
PUT PARAGRAPH ONE HERE | |
PUT PARAGRAPH TWO HERE (Or delete if unneccessary) | |
Put PARAGRAPH THREE HERE (Or delete if unneccessary) |
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 Ultrasphinx | |
class Configure | |
class << self | |
def setup_source_database(klass) | |
# Supporting Postgres now | |
connection_settings = klass.connection.instance_variable_get("@config") | |
raise ConfigurationError, "Unsupported database adapter" unless connection_settings || defined?(JRUBY_VERSION) | |
adapter_defaults = DEFAULTS[ADAPTER] | |
raise ConfigurationError, "Unsupported database adapter" unless adapter_defaults |
OlderNewer