gorums/WatchIoT

View on GitHub
app/controllers/dashboard_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
##
# Dashboard controller
#
class DashboardController < ApplicationController
  layout 'dashboard'

  before_filter :allow

  ##
  # Get /:username
  #
  def show
    @space = Space.new
    @logs = Log.where(user_id: @user.id).limit(20)
                .order(created_at: :desc)
  end
end