Class: ActiverecordCursorPagination::SecretKeyFinder
- Inherits:
-
Object
- Object
- ActiverecordCursorPagination::SecretKeyFinder
- Defined in:
- lib/activerecord_cursor_pagination/secret_key_finder.rb
Instance Method Summary collapse
Instance Method Details
#find_in(application) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/activerecord_cursor_pagination/secret_key_finder.rb', line 3 def find_in(application) if application.respond_to? :credentials application.credentials.secret_key_base elsif application.respond_to? :secrets application.secrets.secret_key_base elsif application.config.respond_to? :secret_key_base application.config.secret_key_base elsif application.respond_to? :secret_key_base application.secret_key_base end end |