class Iatelier::Controllers::Books::Edit

Public Instance Methods

call(params) click to toggle source
# File lib/iatelier/controllers/books/edit.rb, line 8
def call(params)
    # [optional] setting the database
    @database = params.get(:database)
        self.set_database @database

    #
        @book = Object.const_get(params[:book_type].capitalize).find(params[:id])
    @book.namespace = @database
end