app/models/archangel/page.rb in archangel-0.0.7 vs app/models/archangel/page.rb in archangel-0.0.8

- old
+ new

@@ -55,11 +55,11 @@ ## # Return string of publication status. # # @return [String] publication status # - def published_status + def status if published? if published_at > Time.now "future-published" else "published" @@ -130,11 +130,9 @@ return false if %r{^#{slug}/?}.match?(path) end end def reserved_paths - Archangel.config.to_h.select do |key, _val| - %i[auth_path backend_path frontend_path].include?(key) - end.values + Archangel.config.keys_in(Archangel.reserved_page_keywords).values end end end