lib/lifeform.rb in lifeform-0.13.0 vs lib/lifeform.rb in lifeform-0.14.0
- old
+ new
@@ -8,11 +8,11 @@
module Lifeform
class Error < StandardError; end
end
if defined?(Bridgetown)
- # Check compatibility
- raise "The Lifeform support for Bridgetown requires v1.2 or newer" if Bridgetown::VERSION.to_f < 1.2
-
- Bridgetown.initializer :lifeform do # |config|
+ Bridgetown.initializer :lifeform do |config|
+ config.hook :authtown, :initialized do |rodauth|
+ Lifeform::Form.rodauth = rodauth
+ end
end
end