Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Find any ActiveRecords being passed into your views.

View application_controller.rb
1 2 3 4 5 6 7 8 9 10 11 12 13
class ApplicationController < ActionController::Base
 
require 'test/unit/assertions'
include Test::Unit::Assertions
after_filter do
instance_variables.each do |variable|
assert !instance_variable_get(variable).is_a?(ActiveRecord::Base), "#{variable} is an ActiveRecord"
end
end
 
#...
 
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.