Class: Authengine::UseractionsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/authengine/useractions_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



10
11
12
13
14
15
16
# File 'app/controllers/authengine/useractions_controller.rb', line 10

def index
  dates = (0..4).to_a.inject({}) do |hash,index|
    hash.merge!( index => Useraction.date_of_index(index) )
    hash
  end
  @dates = dates.invert
end

#showObject



4
5
6
7
8
# File 'app/controllers/authengine/useractions_controller.rb', line 4

def show
  eval("@useractions = Useraction#{params[:actionlog_id].to_i}.all.map{|u| u.becomes(Useraction)}")
  @date = Useraction.date_of_index(params[:actionlog_id].to_i)
  @sort_criteria = [ :created_at, :user_lastName ]
end