test/dummy/app/controllers/pages_controller.rb in crumbs-1.0.7 vs test/dummy/app/controllers/pages_controller.rb in crumbs-1.0.8
- old
+ new
@@ -1,10 +1,10 @@
class PagesController < ApplicationController
crumb :home, 'Home'
- crumb :static, 'Static'
- crumb :i18n, I18n.t('hello')
- crumb :nested, proc { |params| 'Nested' }
+ crumb(:static) { 'Static' }
+ crumb :i18n do I18n.t('hello') end
+ crumb :nested, ->(params) { 'Nested' }
crumb :param, proc { |params| params[:param] }
def home
render :crumbs
end