Sha256: f8f407f9b3544b29b8949f1ada8543c612936c7df025c55782ba3a8e9d122424

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 Bytes

Contents

# frozen_string_literal: true

module Distribuo
  class AppsController < ApplicationController
    before_action :set_objects

    def index; end

    private

    def set_objects
      @apps = Distribuo.config.current_mobiliable.apps
      @apps = Distribuo::App.all if @apps.count == 0
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
distribuo-0.1.16 app/controllers/distribuo/apps_controller.rb
distribuo-0.1.8 app/controllers/distribuo/apps_controller.rb