analyze logs
oink analyze.log --threshold=50 -r
---- OINK FOR ACTIVERECORD ----
THRESHOLD: 50 Active Record objects per request
-- SUMMARY --
Worst Requests:
source "http://rubygems.org" | |
ruby "2.1.0" | |
gem "rails", "4.0.3" | |
gem "activeadmin", github: "gregbell/active_admin" | |
gem "aws-sdk", "1.35.0" | |
gem "bourbon", "3.1.8" | |
gem "cancan", "1.6.10" | |
gem "carrierwave", "0.10.0" |
def licensee_country_valid? | |
# clip.video.source.source_countries.map { |source| source.country }.include?(order.licensee_country) | |
clip.video.source.source_countries.where("country LIKE '%#{order.licensee_country}%'").any? | |
end | |
analyze logs
oink analyze.log --threshold=50 -r
---- OINK FOR ACTIVERECORD ----
THRESHOLD: 50 Active Record objects per request
-- SUMMARY --
Worst Requests:
if [ -f "$rvm_path/scripts/rvm" ]; then | |
source "$rvm_path/scripts/rvm" | |
if [ -f ".rvmrc" ]; then | |
source ".rvmrc" | |
fi | |
if [ -f ".ruby-version" ]; then | |
rvm use `cat .ruby-version` | |
fi |
in which, by pressing a button, multiple folks get a picture of a shih tzu.
A Pen by Innovations for Learning on CodePen.
Was tired of heavy bloated jQuery slider plugins so I made my own. Has controls and finds your slide height/width automatically. Simple & basic, the way momma would have wanted.
Forked from Mark Peck's Pen Very Simple Slider.
A Pen by Innovations for Learning on CodePen.
Reference: http://guides.rubyonrails.org/action_mailer_basics.html
Setup the SMTP settings as appropriate in config/environments/development.rb
, staging.rb
, production.rb
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
address: "smtp.mandrillapp.com",
//= require environment_indicator | |
... | |
//= require all |
#runner | |
#info | |