Skip to content

Instantly share code, notes, and snippets.

View wjessop's full-sized avatar
🤖

Will Jessop wjessop

🤖
View GitHub Profile
We couldn’t find that file to show.
class ApplicationController < ActionController::Base
include MemoryUsageLogger
# the rest of your code
end
class ApplicationController < ActionController::Base
session :off, :if => Proc.new { |req| req.headers["User-Agent"].match(/ia_archiver/) }
# … other code
end
if @location.precision == 'country' and ['UK', 'US'].include? @location.country_code
redirect_to '/'
flash[:message] = 'Please narrow your search criteria!'
return
end
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
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 :)
* Domain name
* Company name
* City
* State
* Country
* Contact email address
# Put this as the bottom of your environment.rb file
ActionController::Base.asset_host = collectionname.cloudfront.net
Dear William
PUT PARAGRAPH ONE HERE
PUT PARAGRAPH TWO HERE (Or delete if unneccessary)
Put PARAGRAPH THREE HERE (Or delete if unneccessary)
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