app/models/refinery/page.rb
# If you want to destroy a page that is set to be not deletable this is the way to do it.
If you want to destroy a page that is set to be not deletable this is the way to do it.
If you want to destroy a page that is set to be not deletable this is the way to do it .
def destroy!
      self.update_attributes(:menu_match => nil, :link_url => nil, :deletable => true)
      self.destroy
    end
def destroy! self . update_attributes ( :menu_match => nil , :link_url => nil , :deletable => true ) self . destroy end
If you want to destroy a page that is set to be not deletable this is the way to do it.
If you want to destroy a page that is set to be not deletable this is the way to do it .