undefined method `attr_accessible' for ...:Class

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Daniel Doubrovkine
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: