seperated the methods of the basic controller
This commit is contained in:
parent
8e1b79663c
commit
926775f029
|
@ -20,7 +20,17 @@ module Zero
|
|||
# build the response and return it
|
||||
# @return Response a rack conform response
|
||||
def response
|
||||
raise NotImplementedError.new("Not Implemented in ${__FILE__}")
|
||||
process if respond_to?(:process)
|
||||
render
|
||||
@response
|
||||
end
|
||||
|
||||
def process
|
||||
raise NotImplementedError.new("'render' not implemented in #{self.class}")
|
||||
end
|
||||
|
||||
def process
|
||||
raise NotImplementedError.new("'render' not implemented in #{self.class}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue