2015-09-11 18:04:45 +02:00
|
|
|
class PagesController < ApplicationController
|
|
|
|
require 'statistics'
|
|
|
|
|
|
|
|
def landing
|
2017-01-11 21:18:23 +01:00
|
|
|
query = TransactionsQuery.new(current_user)
|
|
|
|
@transactions = ActiveRecord::Base.connection.exec_query(query.query.order(query.arel_table[:time].desc).take(10).project(Arel.star).to_sql)
|
|
|
|
end
|
|
|
|
|
|
|
|
def sign_in
|
2015-09-11 18:04:45 +02:00
|
|
|
@statistics = Statistics.new
|
|
|
|
end
|
|
|
|
end
|