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
location ~ ^/entries/[0-9]+/files$ { | |
upload_pass @app; | |
upload_store /mnt/nginx_uploads 1; | |
upload_store_access user:rw group:rw all:r; | |
upload_set_form_field $upload_field_name[original_name] "$upload_file_name"; | |
upload_set_form_field $upload_field_name[content_type] "$upload_content_type"; | |
upload_set_form_field $upload_field_name[tmp_path] "$upload_tmp_path"; |
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
@mixin background-icon($color: #444, $font-size: 19px, $left: 5px, $top: 5px) { | |
position: relative; | |
&:before { | |
position: absolute; | |
left: $left; | |
top: $top; | |
font-size: $font-size; | |
line-height: 1; |
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
groups: | |
page-colors: "Page Colors" | |
page-typography: "Page Typography" |
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
<p><%= t('.salutation', first_name: @user.first_name, last_name: @user.last_name) %>,</p> | |
<p><%= t('.instruction') %></p> | |
<p><%= link_to main_app.edit_user_password_url(@user, :reset_password_token => @token), | |
main_app.edit_user_password_url(@user, :reset_password_token => @token) %></p> | |
<p><%= t('.ending') %></p> | |
<p><%= t('.greeting') %></p> |
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 RSpecTest | |
include RSpec::Matchers | |
def self.included(base) | |
base.extend ClassMethods | |
end | |
def expect(*a, &b) | |
# So number of assertions equals number of expectations in output | |
assert(true) |
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
# Make sure no jobs are enqueued from a rolled back | |
# transaction. | |
# | |
# Note the after_transaction yields immediately if there is no open | |
# transcation. | |
require 'ar_after_transaction' | |
require 'resque' | |
Resque.class_eval do |
NewerOlder