Exception: MongoMapper::AccessibleOrProtected
- Defined in:
- lib/mongo_mapper/exceptions.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ AccessibleOrProtected
constructor
A new instance of AccessibleOrProtected.
Constructor Details
#initialize(name) ⇒ AccessibleOrProtected
Returns a new instance of AccessibleOrProtected.
23 24 25 |
# File 'lib/mongo_mapper/exceptions.rb', line 23 def initialize(name) super("Declare either attr_protected or attr_accessible for #{name}, but not both.") end |