This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gamejs = require('gamejs'); | |
var $v = require('gamejs/utils/vectors'); | |
/* | |
* · Each tile can hold a "block" property detailing its desired | |
* blocking behaviour. Possible blocking data values are: | |
* - "none" -> Tile does not block. | |
* - "always" -> Tile blocks. | |
* - "north" -> Tile does not allow to go through its north border. | |
* - "east" -> Tile does not allow to go through its east border. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hospitalizations::TransfersController < BaseController | |
defaults :resource_class => Hospitalization::Transfer | |
def list | |
@transfer_requests = Hospitalization::Transfer::Request.waiting.ordered | |
end | |
def new | |
transfer_request = Hospitalization::Transfer::Request.find(params[:request_id]) | |
@transfer_request = HospitalizationTransferRequestPresenter.new(transfer_request) |