In config/production.rb
config.action_mailer.asset_host = "https://123123.cloudfront.net"In config/initializers/mail_image_tag.rb
module ActionView| var createMyWrappedInput = function (defaultValue) { | |
| var wrappedInput = "<div class='Wrapper'>"; | |
| wrappedInput += '<input type="text" value="' + defaultValue + '"/>'; | |
| wrappedInput += '</div>'; | |
| return wrappedInput; | |
| }; |
| var createMyWrappedInput = function (defaultValue) { | |
| return [ | |
| '<div class="Wrapper">', | |
| '<input type="text" value="' + defaultValue + '"/>', | |
| '</div>' | |
| ].join(""); | |
| }; |
| var createMyWrappedInput = function (defaultValue) { | |
| var wrapper = $("<div class='Wrapper'></div>"), | |
| input = $('<input type="text" />'); | |
| input.val(defaultValue); | |
| wrapper.append(input); | |
| return wrapper; | |
| }; |
| <style> | |
| .ProFeature { | |
| display: none; | |
| } | |
| </style> | |
| <form action="/episodes" method="POST" data-is-pro="<%= user.pro %>"> | |
| <input type="email" name="email" /> | |
| <input type="email" name="alternate_email" class="ProFeature" disabled /> | |
| </form> |
| <div id="Placeholder"></div> | |
| <script> | |
| var myForm = new BLIP.Form({ | |
| target: "Placeholder", | |
| action: "/episodes", | |
| method: "POST", | |
| inputs: [ | |
| { | |
| name: "email", |
| class Array | |
| def newest | |
| records = self.select{ |e| e.kind_of? ActiveRecord::Base } | |
| records.sort do |a, b| | |
| a.created_at <=> b.created_at | |
| end | |
| records.last | |
| end |
In config/production.rb
config.action_mailer.asset_host = "https://123123.cloudfront.net"In config/initializers/mail_image_tag.rb
module ActionView| NSString *pathToRelaunch = [host bundlePath]; | |
| if ([[updater delegate] respondsToSelector:@selector(pathToRelaunchForUpdater:)]) | |
| pathToRelaunch = [[updater delegate] pathToRelaunchForUpdater:updater]; | |
| NSString *relaunchToolPath = [relaunchPath stringByAppendingPathComponent: @"/Contents/MacOS/finish_installation"]; | |
| [NSTask launchedTaskWithLaunchPath: relaunchToolPath arguments:[NSArray arrayWithObjects:[host bundlePath], pathToRelaunch, [NSString stringWithFormat:@"%d", [[NSProcessInfo processInfo] processIdentifier]], tempDir, relaunch ? @"1" : @"0", nil]]; | |
| [NSApp terminate:self]; |
| brew tap phinze/homebrew-cask | |
| brew install brew-cask | |
| brew cask install layervault |
| class PersonSerializer < ActiveModel::Serializer | |
| def model_version | |
| Digest::MD5.hexdigest(File.read(File.join(Rails.root, "app/serializers", "#{self.class.to_s.underscore}.rb")).gsub(/\s/,'')) | |
| end | |
| end |