Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-3664

undefined method `attr_accessible' for ...:Class

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      In Mongoid3 I used to be able to change whether there were any accessible/protected attributes explicitly.

       ruby
              context "protected attributes" do
                before :each do
                  Comment.attr_accessible(nil)
                end
      
                after :each do
                  Comment.attr_protected(nil)
                end
              ...
      

      This now yields {{undefined method }}attr_accessible' for Comment:Class`, where did it go?

            Assignee:
            Unassigned Unassigned
            Reporter:
            dblock Daniel Doubrovkine
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: