lib/gretel/deprecated.rb in gretel-3.0.0.beta4 vs lib/gretel/deprecated.rb in gretel-3.0.0.beta5

- old
+ new

@@ -1,23 +1,2 @@ -module Gretel - module Crumbs - class << self - # Lay out the breadcrumbs. - # Deprecated since v2.1.0 and removed in v3.0.0. - # Put breadcrumbs in +config/breadcrumbs.rb+ instead (see https://github.com/lassebunk/gretel/blob/master/README.md for details). - # - # Example: - # Gretel::Crumbs.layout do - # crumb :root do - # link "Home", root_path - # end - # end - def layout(&block) - raise ( - "Gretel::Crumbs.layout has been deprecated was removed in Gretel version 3.0. " + - "Please put your breadcrumbs in `config/breadcrumbs.rb`. " + - "This will also automatically reload your breadcrumbs when you change them in the development environment. " + - "See https://github.com/lassebunk/gretel/blob/master/README.md for details.") - end - end - end -end +require "gretel/deprecated/layout" +require "gretel/deprecated/show_root_alone" \ No newline at end of file