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
:directories: | |
- app | |
- lib | |
:excludes: | |
- config/initializers |
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 ShipmentCycle < ActiveRecord::Base | |
belongs_to :plan, inverse_of: :shipment_cycles | |
has_many :gift_subscriptions, inverse_of: :shipment_cycle | |
has_many :plan_allotments, inverse_of: :shipment_cycle | |
has_many :subscriptions, inverse_of: :shipment_cycle | |
has_one :assortment, through: :plan |
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
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
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
item.wow_feed_images.first.try(:url) || | |
asset_path('feed-item-thumbnail-default.jpg') |
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
#!/usr/bin/env ruby | |
require_relative '../config/boot' | |
require 'rake' | |
Rake.application.run |
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
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
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 | |
TMP_FILE=`mktemp /tmp/XXXXXX` | |
git diff "$1" "$2" > "$TMP_FILE.diff" | |
~/bin/subl -w -n "$TMP_FILE.diff" |
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
= simple_form_for @profile, url: my_membership_path, html: { class: "form-horizontal" } do |form| | |
= form.simple_fields_for @profile.customer do |fields| | |
= fields.input :first_name | |
= fields.input :last_name, label: false | |
= form.simple_fields_for @profile.user do |fields| | |
= fields.input :email | |
= fields.input :password | |
= form.simple_fields_for @profile.customer do |fields| | |
= fields.input :zip_code | |
.form-actions |
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
= simple_form_for @sign_up, url: sign_up_path, html: { class: "form-horizontal" } do |form| | |
= form.simple_fields_for @sign_up.customer do |fields| | |
= fields.input :first_name | |
= fields.input :last_name, label: false | |
= form.simple_fields_for @sign_up.user do |fields| | |
= fields.input :email | |
= fields.input :password | |
= form.simple_fields_for @sign_up.customer do |fields| | |
= fields.input :zip_code | |
.form-actions |
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 Rails.env.development? | |
Rake::Task["test"].enhance do | |
Rake::Task["db:migrate"].invoke | |
end | |
end |