fixing tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class IpBansController < ApplicationController
|
||||
before_filter :admin_only
|
||||
before_filter :janitor_only
|
||||
|
||||
def new
|
||||
@ip_ban = IpBan.new
|
||||
|
||||
9
app/controllers/moderator/dashboards_controller.rb
Normal file
9
app/controllers/moderator/dashboards_controller.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module Moderator
|
||||
class DashboardsController < ApplicationController
|
||||
before_filter :janitor_only
|
||||
|
||||
def show
|
||||
@dashboard = ModeratorDashboard.new(params[:min_date] || 2.days.ago.to_date, params[:max_level] || 20)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -37,7 +37,7 @@ class NotesController < ApplicationController
|
||||
|
||||
def destroy
|
||||
@note = Note.find(params[:id])
|
||||
@note.update_attribute(:is_active, false)
|
||||
@note.update_column(:is_active, false)
|
||||
respond_with(@note)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user