Class: FetcheableOnApi::Configuration
- Inherits:
-
Object
- Object
- FetcheableOnApi::Configuration
- Defined in:
- lib/fetcheable_on_api/configuration.rb
Overview
Configuration class for FetcheableOnApi gem settings.
This class holds global configuration options that affect the behavior of filtering, sorting, and pagination across all controllers that use the FetcheableOnApi module.
Configuration is typically set in a Rails initializer file, but can also be modified at runtime if needed.
Instance Attribute Summary collapse
-
#pagination_default_size ⇒ Integer
Default number of records per page when no page parameter is provided.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Initialize configuration with default values.
Constructor Details
#initialize ⇒ Configuration
Initialize configuration with default values. Sets up sensible defaults that work well for most applications.
41 42 43 |
# File 'lib/fetcheable_on_api/configuration.rb', line 41 def initialize @pagination_default_size = 25 end |
Instance Attribute Details
#pagination_default_size ⇒ Integer
Default number of records per page when no page parameter is provided. This value is used by the Pageable module when clients don’t specify a page size in their requests.
37 38 39 |
# File 'lib/fetcheable_on_api/configuration.rb', line 37 def pagination_default_size @pagination_default_size end |