Sha256: 0c98c1aa1054d09e7a35dd416ed4f38beada16d2c231675388af52d3f1937949
Contents?: true
Size: 567 Bytes
Versions: 5
Compression:
Stored size: 567 Bytes
Contents
# Extended by RtmlController, this module provides class methods to assist adding new RTML actions to the controller. module Rtml::Controller::ClassMethods::RtmlActionHelpers def add_rtml_proxy_action(method_name) if defined?(Rails) && Rails.logger Rails.logger.debug "Adding RTML proxy action #{method_name.inspect} to #{name}" end define_method method_name do render :rtml => method_name unless default_template_exists? end recalculate_action_methods! end def recalculate_action_methods! @action_methods = nil end end
Version data entries
5 entries across 5 versions & 1 rubygems