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
- @customizable.styles.group_by { |style| style.dom_id_and_selector }.each do |dom_id_and_selector, styles| | |
= dom_id_and_selector | |
{ | |
- styles.each do |style| | |
= "#{style.property}: #{style.value};" | |
} | |
= "" |
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
:plain | |
Name,Email,Package,Price,Number Attending,Total Price,Paid?,Registered On | |
- @eventregistrations.each do |e| | |
:plain | |
#{FasterCSV.generate_line [ | |
e.person.name, | |
e.person.primary_email, | |
e.eventpackage.title, | |
number_to_currency_or_free(e.eventpackage.price), | |
e.number_attending, |
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
xml.instruct! :xml, :version => "1.0" | |
xml.rss :version => "2.0" do | |
xml.channel do | |
xml.title Parish.root.name | |
xml.description "From around our community" | |
xml.link url_for(:format => :rss, :only_path => false, :params => params) | |
for news in @news | |
xml.item do | |
xml.author news.dfcfile.parish.primary_email | |
xml.title (("From: ") + news.dfcfile.parish.name + (" - ") + news.title) |
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
Customer-1-20090514114829.css Parish-0-20090520203833.css Parish-21.css | |
Customer-1-20090520143929.css Parish-0-20090520220315.css Parish-210.css | |
Customer-1-20090521173718.css Parish-0-20090520220446.css Parish-212.css | |
Customer-10-20090520044221.css Parish-0-20090520221009.css Parish-215.css | |
Customer-10-20090520203936.css Parish-0-20090521135345.css Parish-217.css | |
Customer-10.css Parish-0-20090521151455.css Parish-218.css | |
Customer-11-20090520044225.css Parish-0-20090521170937.css Parish-22.css | |
Customer-12-20090514114614.css Parish-0-20090521174159.css Parish-220.css | |
Customer-12-20090520144041.css Parish-0-20090521180913.css Parish-221.css | |
Customer-12-20090521152706.css Parish-0-20090521191133.css Parish-222.css |
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 DomainMiddleware | |
@@connection_handlers = {} | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
@request = ActionController::Request.new(env) | |
env["rack.session.options"][:domain] = @request.stage_and_domain |
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 "enumerator" | |
#Images | |
- if images.empty? | |
%h4 No images | |
- else | |
- images.each_slice(3) do |slice| | |
.row | |
- slice.each do |image| | |
.image | |
= link_to image_tag(image.public_filename(:web)), management_image_path(@parish, image) |
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
"Anchorage St. Luke's" => 2 | |
"Bardstown Ascension" => 3 | |
"Bowling Gr Christ Ch" => 4 | |
"Brandenburg H Trin" => 5 | |
"Campblsvl St Thomas" => 6 | |
"Christ Ch Cathedral" => 1 | |
"E'town Christ Ch" => 7 | |
"Fern Cr St Alban's" => 8 | |
"Ft Knox St John's Cn" | |
"Fulton Trinity" => 10 |
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 ObjectRow < ActiveRecord::Base | |
self.abstract_class = true | |
establish_connection :adapter => "sqlite3", :database => ":memory:" | |
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
module Importers | |
module Kentucky | |
class KentuckyEmailRow < Importers::EmailRow | |
def self.load_rows | |
connection.create_table("kentucky_email_rows", :force => true) do |t| | |
t.string "family_number_and_individual_number" | |
t.string "description" | |
t.string "email_addr" | |
t.string "email_unlisted" |
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 Importers | |
class ObjectsImporter | |
def self.import_objects(row_type) | |
ActiveRecord::Base.transaction do | |
import = Import.create!(:import_type => row_type.to_s) | |
row_type.find_in_batches do |rows| | |
rows.each do |row| |