lib/generators/georgia/install/templates/app/controllers/pages_controller.rb in georgia-0.7.8 vs lib/generators/georgia/install/templates/app/controllers/pages_controller.rb in georgia-0.8.0

- old
+ new

@@ -5,9 +5,9 @@ before_filter :prepare_menus private def prepare_menus - @main_menu = Georgia::Menu.find_by_name('Main', include: {links: :contents}) + @main_menu = Georgia::Menu.where(name: 'Main').includes(links: :contents).first end end \ No newline at end of file