Class: ActiverecordCursorPagination::Configuration
- Inherits:
-
Object
- Object
- ActiverecordCursorPagination::Configuration
- Defined in:
- lib/activerecord_cursor_pagination/configuration.rb
Instance Attribute Summary collapse
-
#secret_key ⇒ String
Gets the secret key base for secure cursor implementations.
-
#serializer ⇒ Object
Returns the value of attribute serializer.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
-
#serializer_instance ⇒ Serializer
Get an instance of the serializer.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/activerecord_cursor_pagination/configuration.rb', line 5 def initialize setup_defaults end |
Instance Attribute Details
#secret_key ⇒ String
Gets the secret key base for secure cursor implementations.
If Rails is defined, secret_key
will try to find the implementation of the default secret_key_base
in the application.
18 19 20 |
# File 'lib/activerecord_cursor_pagination/configuration.rb', line 18 def secret_key @secret_key end |
#serializer ⇒ Object
Returns the value of attribute serializer.
3 4 5 |
# File 'lib/activerecord_cursor_pagination/configuration.rb', line 3 def serializer @serializer end |
Instance Method Details
#serializer_instance ⇒ Serializer
Get an instance of the serializer
27 28 29 |
# File 'lib/activerecord_cursor_pagination/configuration.rb', line 27 def serializer_instance serializer.new end |