Sha256: 00562a7247d353255b5ce69e8650cb98eed86bd1d4d641ddb5b3cc2134d394cd

Contents?: true

Size: 348 Bytes

Versions: 1

Compression:

Stored size: 348 Bytes

Contents

class SamplesController < ApplicationController
  set_layout "application", only: :index
  set_layout "site", only: :show
  set_layout "modal", except: [:index, :show, :remove]
  set_layout "window", only: :remove

  def index
    render "/action"
  end

  alias_method :show, :index
  alias_method :edit, :index
  alias_method :remove, :index
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
layout-0.2.1 spec/support/app/controllers/samples_controller.rb