Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 63bf611371
Fetching contributors…

Cannot retrieve contributors at this time

10 lines (8 sloc) 0.275 kb
class ApplicationController < ActionController::Base
protect_from_forgery
def find_resource
class_name = params[:controller].singularize
klass = class_name.camelize.constantize
self.instance_variable_set "@" + class_name, klass.find(params[:id])
end
end
Jump to Line
Something went wrong with that request. Please try again.