Sha256: 7d34c055fbd083d138542bcc93a0a9fcd5c683cda60c38cf27978236288f4b15
Contents?: true
Size: 242 Bytes
Versions: 2
Compression:
Stored size: 242 Bytes
Contents
class ApplicationController < ActionController::Base protect_from_forgery before_filter do if params[:orm] == :active_record @user_model = User elsif params[:orm] == :mongoid @user_model = MongoUser end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_api-0.3.8 | spec/rails_app/app/controllers/application_controller.rb |
acts_as_api-0.3.7 | spec/rails_app/app/controllers/application_controller.rb |