private Method

Session.raise_on_session_data_overflow!

Ensures that the data about to be stored in the database is not larger than the data storage column. Raises ActionController::SessionOverflowError.

Source Code

# File action_controller/session/active_record_store.rb, line 142
def raise_on_session_data_overflow!
  return false if !loaded?
  limit = self.class.data_column_size_limit
  if loaded? and limit and read_attribute(@@data_column_name).size > limit
    raise ActionController::SessionOverflowError
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.