Sha256: 30aa4afba3f3af25f3987ea55b3555b0bd7e8f2813e5c40ab307a0594638bcde
Contents?: true
Size: 243 Bytes
Versions: 2
Compression:
Stored size: 243 Bytes
Contents
class AuthorsController < ApplicationController def index if params[:variable_type] == 'array' @authors = Author.all else @authors = Author.scoped end end def show @author = Author.find params[:id] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
r_decorator-0.0.7 | spec/dummy/app/controllers/authors_controller.rb |
r_decorator-0.0.6 | spec/dummy/app/controllers/authors_controller.rb |