Sha256: 9721656db5654fb6728fdfa467df55ce19a00b32c355115ed8b1815bf86d6930

Contents?: true

Size: 257 Bytes

Versions: 5

Compression:

Stored size: 257 Bytes

Contents

module Iatelier
  module Controllers
    module Books
      class Manage
        include Iatelier::Action
		expose :books
        def call(params)
	        @books = Object.const_get(params[:book_type].capitalize).all
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
iatelier-0.1.8 lib/iatelier/controllers/books/manage.rb
iatelier-0.1.7 lib/iatelier/controllers/books/manage.rb
iatelier-0.1.5 lib/iatelier/controllers/books/manage.rb
iatelier-0.1.4 lib/iatelier/controllers/books/manage.rb
iatelier-0.1.3 lib/iatelier/controllers/books/manage.rb