Skip to content

Commit

Permalink
Call what we suspect is the proper response in Admin::PagesControllre…
Browse files Browse the repository at this point in the history
…#new
  • Loading branch information
Josh French committed Jul 20, 2010
1 parent f6988a7 commit 268921b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/page_types_extension/pages_controller_extensions.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PageTypesExtension::PagesControllerExtensions
def self.included(base)
base.class_eval do
responses.singular.default do
responses.new.default do
initialize_page_class
end
end
Expand All @@ -12,6 +12,6 @@ def initialize_page_class
self.model.class_name = params[:page_class]
end
rescue NameError => e
logger.warn "Wrong page class given in Pages#create: #{e.message}"
logger.warn "Wrong page class given in Pages#new: #{e.message}"
end
end

0 comments on commit 268921b

Please sign in to comment.