Sha256: f2e9a5f6655c32501fc1caec4d8b8aa521297430ca09a4d4de5a05a6bf766394

Contents?: true

Size: 627 Bytes

Versions: 16

Compression:

Stored size: 627 Bytes

Contents

# TODO
# This controller is given as an example of a possible home
# Home funcitons :
# * Display generic information about the connector (mostly for not connected users)
# * Link the connector to a Maestrano organization
# * Acces the last synchronization and a synchronization history (with their status)
class HomeController < ApplicationController
  def index
    if current_user
      @organization = current_organization

      if @organization
        @synchronizations = Maestrano::Connector::Rails::Synchronization.where(organization_id: @organization.id).order(updated_at: :desc).limit(40)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
maestrano-connector-rails-0.2.16 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.15 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.14 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.13 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.12 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.11 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.10 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.9 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.8 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.7 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.5 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.4 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.3 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.2 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.2.0 lib/generators/connector/templates/home_controller.rb
maestrano-connector-rails-0.0.1 lib/generators/connector/templates/home_controller.rb