class ObjectifiedSessions::Errors::DuplicateFieldNameError
Raised when you try to define a field that has the same name as a previously-defined field.
Attributes
field_name[R]
session_class[R]
Public Class Methods
new(session_class, field_name)
click to toggle source
Calls superclass method
# File lib/objectified_sessions/errors.rb, line 32 def initialize(session_class, field_name) @session_class = session_class @field_name = field_name super("Class #{@session_class.name} already has one field named #{@field_name.inspect}; you can't define another.") end