Class: ForestLiana::Bootstraper
- Inherits:
-
Object
- Object
- ForestLiana::Bootstraper
- Defined in:
- lib/forest_liana/bootstraper.rb
Instance Method Summary collapse
-
#initialize(app) ⇒ Bootstraper
constructor
A new instance of Bootstraper.
- #perform ⇒ Object
Constructor Details
#initialize(app) ⇒ Bootstraper
Returns a new instance of Bootstraper.
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/forest_liana/bootstraper.rb', line 4 def initialize(app) @app = app @logger = Logger.new(STDOUT) if ForestLiana.jwt_signing_key warn "DEPRECATION WARNING: the use of ForestLiana.jwt_signing_key \ (config/initializers/forest_liana.rb) is deprecated. Use \ ForestLiana.secret_key and ForestLiana.auth_key instead. \ More info at: https://github.com/ForestAdmin/forest-rails/releases/tag/1.2.0" ForestLiana.secret_key = ForestLiana.jwt_signing_key ForestLiana.auth_key = ForestLiana.jwt_signing_key end end |
Instance Method Details
#perform ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/forest_liana/bootstraper.rb', line 18 def perform create_serializers if ForestLiana.secret_key create_apimap require_lib_forest_liana send_apimap end end |