Sha256: 0ae3db3c204494100b192c913236d15ed9527fce2ec89f105395e365af6b8d08

Contents?: true

Size: 1.52 KB

Versions: 27

Compression:

Stored size: 1.52 KB

Contents

Praxis::Application.configure do |application|

  # Configure the Mapper plugin (if we want to use all the filtering/field_selection extensions)
  application.bootloader.use Praxis::Plugins::MapperPlugin
  # Configure the Pagination plugin (if we want to use all the pagination/ordering extensions)
  application.bootloader.use Praxis::Plugins::PaginationPlugin, **{
    # max_items: 500,  # Unlimited by default,
    # default_page_size: 100,
    # paging_default_mode: {by: :id},
    # disallow_paging_by_default: false,
    # disallow_cursor_by_default: false,
    # sorting: {
    #   enforce_all_fields: true
    # }
  }
  
  # This is a commented out copy of the default Praxis layout
  # This example app follows the standard practices, so there is no reason to override it
  # If we wanted to organize the structure and ordering of files, we can uncomment the layout
  # and define it at our own leisure
  # application.layout do
  #   map :initializers, 'config/initializers/**/*'
  #   map :lib, 'lib/**/*'
  #   map :design, 'design/' do
  #     map :api, 'api.rb'
  #     map :helpers, '**/helpers/**/*'
  #     map :types, '**/types/**/*'
  #     map :media_types, '**/media_types/**/*'
  #     map :endpoints, '**/endpoints/**/*'
  #   end
  #   map :app, 'app/' do
  #     map :models, 'models/**/*'
  #     map :responses, '**/responses/**/*'
  #     map :exceptions, '**/exceptions/**/*'
  #     map :concerns, '**/concerns/**/*'
  #     map :resources, '**/resources/**/*'
  #     map :controllers, '**/controllers/**/*'
  #   end
  # end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
praxis-2.0.0 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.40 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.39 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.38 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.37 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.36 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.35 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.34 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.33 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.32 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.31 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.30 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.29 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.28 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.27 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.26 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.25 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.24 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.23 tasks/thor/templates/generator/example_app/config/environment.rb
praxis-2.0.pre.22 tasks/thor/templates/generator/example_app/config/environment.rb