Module: Ixtlan::Controllers::AuditsController

Defined in:
lib/ixtlan/controllers/audits_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
# File 'lib/ixtlan/controllers/audits_controller.rb', line 5

def self.included(base)
  base.send(:include, Ixtlan::Controllers::SearchQuery)

  base.cache_headers :protected, false #no_store == false
end

Instance Method Details

#indexObject

GET /audits GET /audits.xml



19
20
21
22
23
24
25
26
27
# File 'lib/ixtlan/controllers/audits_controller.rb', line 19

def index
  # limit all queries
  @audits = query_limit_all(AUDIT, :login, :message).reverse

  respond_to do |format|
    format.html
    format.xml  { render :xml => @audits }
  end
end