lib/active_admin/resource/page_presenters.rb in activeadmin-4.0.0.beta5 vs lib/active_admin/resource/page_presenters.rb in activeadmin-4.0.0.beta6

- old
+ new

@@ -49,11 +49,11 @@ protected # Stores a config for all index actions supplied # # @param [Symbol] index_as The index type to store in the configuration - # @param [PagePresenter] page_presenter The intance of PagePresenter to store + # @param [PagePresenter] page_presenter The instance of PagePresenter to store def set_index_presenter(index_as, page_presenter) page_presenters[:index] ||= {} #set first index as default value or the index with default param set to to true if page_presenters[:index].empty? || page_presenter[:default] == true @@ -62,10 +62,10 @@ end page_presenters[:index][index_as] = page_presenter end - # Returns the actual class for renderering the main content on the index + # Returns the actual class for rendering the main content on the index # page. To set this, use the :as option in the page_presenter block. # # @param [Symbol, Class] symbol_or_class The component symbol or class # @return [Class] def find_index_class(symbol_or_class)