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

undefined method `attr_accessible' for ...:Class

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 12_01_17
    • Component/s: None
    • Labels:
      None

      Description

      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?

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: