Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
(e.g. app/models/concerns/, app/models/products/)
| // | |
| // RKDNetworking.h | |
| // restkit_demo | |
| // | |
| // Created by Andrea Dal Ponte on 22/10/13. | |
| // Copyright (c) 2013 ACME Inc. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| #import "RKDCompany.h" |
| class ApplicationController < ActionController::Base | |
| helper_method :masquerading?, :current_unit_measure | |
| protected | |
| def masquerading? | |
| session[:masked_id].present? | |
| end |
| # http://stackoverflow.com/questions/14972253/simpleform-default-input-class | |
| # https://github.com/plataformatec/simple_form/issues/316 | |
| inputs = %w[ | |
| CollectionSelectInput | |
| DateTimeInput | |
| FileInput | |
| GroupedCollectionSelectInput | |
| NumericInput | |
| PasswordInput |
| = simple_form_for @post, html: { class: 'form-horizontal' }, defaults: { wrapper: :horizontal_form } do |f| | |
| = f.error_notification | |
| .form-inputs | |
| = f.input :first_name | |
| = f.input :last_name | |
| = f.input :email | |
| .form-actions | |
| = f.button :submit |
| module SimpleForm | |
| module Inputs | |
| class Base | |
| private | |
| def valid_validator?(validator) | |
| # conditional validators are no surprise to us, so just check the action: | |
| action_validator_match?(validator) | |
| end |
| module PolicyHelper | |
| def can?(action, subject) | |
| policy(subject).try "#{action}?" | |
| end | |
| def policy_helper_arguments(*args, &block) | |
| object = args[0] | |
| if block_given? |
| module PdfHelper | |
| def wicked_pdf_stylesheet_link_tag(*sources) | |
| sources.collect { |source| | |
| asset = Rails.application.assets.find_asset("#{source}.css") | |
| if asset.nil? | |
| raise "could not find asset for #{source}.css" | |
| else | |
| "<style type='text/css'>#{asset.body}</style>" | |
| end | |
| }.join("\n").gsub(/url\(['"](.+)['"]\)(.+)/,%[url("#{wicked_pdf_image_location("\1")}")\2]).html_safe |
| @import compass/css3/transform | |
| .blueimp-gallery | |
| .video-js-box.video-content | |
| +transform-style(preserve-3d) | |
| .video-js.vjs-default-skin | |
| +translate(-50%, -50%) | |
| position: absolute | |
| left: 50% |