I am having an active-record model Import
class Import < ActiveRecord::Base
before_create :check_it
def check_it
...
end
end
I am having two controllers User
and Question
class QuestionsController < ApplicationController
def import_question
@import_item = Import.new
...
end
end
class UsersController < ApplicationController
def import_user
@import_item = Import.new
...
end
end
I want to skip the check_it
method in the Import
model for UsersController
.
Please help..