lib/active_admin/resource/page_presenters.rb in activeadmin-1.0.0 vs lib/active_admin/resource/page_presenters.rb in activeadmin-1.1.0

- old
+ new

@@ -31,10 +31,10 @@ # Returns a stored page config # # @param [Symbol, String] action The action to get the config for # @param [String] type The string specified in the presenters index_name method # @return [PagePresenter, nil] - def get_page_presenter(action, type=nil) + def get_page_presenter(action, type = nil) if action.to_s == "index" && type && page_presenters[:index].kind_of?(Hash) page_presenters[:index][type.to_sym] elsif action.to_s == "index" && page_presenters[:index].kind_of?(Hash) page_presenters[:index].default