Sha256: 204d656281c6b2aa8e177647618796198d952fcae717187160143ef8b699f101
Contents?: true
Size: 619 Bytes
Versions: 30
Compression:
Stored size: 619 Bytes
Contents
class BindingTestController < ActionController::Base def is_up render :text => up?.to_s end def up_target render :text => up.target end def up_is_target tested_target = params[:tested_target].presence tested_target or raise "No target given" render :text => up.target?(tested_target).to_s end def is_up_validate render :text => up.validate?.to_s end def up_validate_name render :text => up.validate_name end def set_up_title up.title = 'Pushed document title' render :text => 'text' end def text render :text => 'text from controller' end end
Version data entries
30 entries across 30 versions & 1 rubygems