Revert "Whitespace!"

This reverts commit a747ab5b.
上级 ddbeb15a
module AbstractController
class Base
attr_internal :response_body
attr_internal :response_obj
attr_internal :action_name
......@@ -27,6 +28,7 @@ def process(action_name)
end
private
def process_action
respond_to?(action_name) ? send(action_name) : send(:action_missing, action_name)
end
......@@ -34,5 +36,6 @@ def process_action
def respond_to_action?(action_name)
respond_to?(action_name) || respond_to?(:action_missing, true)
end
end
end
\ No newline at end of file
......@@ -56,5 +56,6 @@ def helper(*args, &blk)
master_helper_module.module_eval(&blk) if block_given?
end
end
end
end
\ No newline at end of file
......@@ -55,6 +55,7 @@ def _render_template(template, options)
end
private
def _layout() end # This will be overwritten
def _layout_for_name(name)
......
......@@ -64,6 +64,7 @@ def self.body_to_s(body)
end
module ClassMethods
def append_view_path(path)
self.view_paths << path
end
......
module ActionController
class AbstractBase < AbstractController::Base
# :api: public
attr_internal :request, :response, :params
......
......@@ -9,6 +9,7 @@ def action_methods() self.class.action_names end
def action_names() action_methods end
private
def respond_to_action?(action_name)
!hidden_actions.include?(action_name) && (super || respond_to?(:method_missing))
end
......
......@@ -23,6 +23,7 @@ def render_to_body(options)
end
private
def _layout_for_option(name)
case name
when String then _layout_for_name(name)
......@@ -33,5 +34,6 @@ def _layout_for_option(name)
"String, true, or false, expected for `layout'; you passed #{name.inspect}"
end
end
end
end
......@@ -41,6 +41,7 @@ def render_to_body(options)
end
private
def _prefix
controller_path
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册