You can add attr_accessor like
class User < SomeClass
attr_accessor :skip_user_confirmation
before_save :skip_confirm
private
def skip_confirm
self.skip_confirmation! if self.skip_user_confirmation
end
end
IN general it should work, but you might want to change it a little end
And then in controller add to user_attributes
key :skip_user_confirmation
, which will be true or false