lib/exposure/behaviors/responding.rb in exposure-0.1.3 vs lib/exposure/behaviors/responding.rb in exposure-0.2.0
- old
+ new
@@ -1,10 +1,10 @@
module Exposure
module Responding
def self.included(base)
base.extend ClassMethods
- base.send(:include, InstaneMethods)
+ base.send(:include, InstanceMethods)
end
module ClassMethods
# response_for :create, :on => :success, :is => { proc }
# response_for :show, :formats => [:html] do
@@ -46,10 +46,10 @@
end
end
end
end
- module InstaneMethods
+ module InstanceMethods
private
def custom_response_for(action_name, action_status, format)
if responder = self.class::Responses["#{action_name}.#{action_status}.#{format}"]
case responder
when Symbol
\ No newline at end of file