tab/app/controllers/pages_controller.rb
2017-01-11 21:18:23 +01:00

12 lines
341 B
Ruby

class PagesController < ApplicationController
require 'statistics'
def landing
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
@statistics = Statistics.new
end
end