Sha256: 91d664637f1c265a2763c8c0e0ed4c7f992546f07686c7141e9a8fb7462d3fd0

Contents?: true

Size: 381 Bytes

Versions: 14

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

class GamesController < ApplicationController
  include Azeroth::Resourceable
  skip_before_action :verify_authenticity_token

  resource_for :game, except: :delete

  private

  def games
    publisher.games
  end

  def publisher
    @publisher ||= Publisher.find(publisher_id)
  end

  def publisher_id
    params.require(:publisher_id)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
azeroth-1.0.0 spec/dummy/app/controllers/games_controller.rb
azeroth-0.10.1 spec/dummy/app/controllers/games_controller.rb
azeroth-0.10.0 spec/dummy/app/controllers/games_controller.rb
azeroth-0.9.0 spec/dummy/app/controllers/games_controller.rb
azeroth-0.8.2 spec/dummy/app/controllers/games_controller.rb
azeroth-0.8.1 spec/dummy/app/controllers/games_controller.rb
azeroth-0.8.0 spec/dummy/app/controllers/games_controller.rb
azeroth-0.7.4 spec/dummy/app/controllers/games_controller.rb
azeroth-0.7.3 spec/dummy/app/controllers/games_controller.rb
azeroth-0.7.2 spec/dummy/app/controllers/games_controller.rb
azeroth-0.7.1 spec/dummy/app/controllers/games_controller.rb
azeroth-0.7.0 spec/dummy/app/controllers/games_controller.rb
azeroth-0.6.5 spec/dummy/app/controllers/games_controller.rb
azeroth-0.6.4 spec/dummy/app/controllers/games_controller.rb