Sha256: 2c40f20cf2613a0589c99c7584b5d8605df7c65c11526ddd6a30a09f90df9442

Contents?: true

Size: 360 Bytes

Versions: 1

Compression:

Stored size: 360 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.0 spec/support/app/controllers/samples_controller.rb