Explorar el Código

Stabby lambda

Andrew Kane hace 8 años
padre
commit
c96d97e579
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -141,7 +141,7 @@ ENV["BLAZER_PASSWORD"] = "secret"
 ### Devise
 
 ```ruby
-authenticate :user, lambda { |user| user.admin? } do
+authenticate :user, -> (user) { user.admin? } do
   mount Blazer::Engine, at: "blazer"
 end
 ```