Sha256: 1a4ad8aeb42d7f98caf662168a40c9aca94a68bf4a51b0ca0bf44a3e9c7afd24
Contents?: true
Size: 1.49 KB
Versions: 2
Compression:
Stored size: 1.49 KB
Contents
Ecm::Blog.configure do |config| # Set the base controller for the page controller # # Default: config.base_controller = '<%= base_controller_class_name %>' # config.base_controller = '<%= base_controller_class_name %>' # Class to use for creators and updaters. # # default: config.creator_class_name = 'User' # config.creator_class_name = 'User' # Set the page title for the posts index page. Useful for when you use # the blog posts index as main app root page. # # example: config.posts_index_page_title_proc = ->(view) { view.t('.welcome') } # # default: config.posts_index_page_title_proc = ->(view) { view.resource_class.model_name.human(count: :other) } # config.posts_index_page_title_proc = ->(view) { view.resource_class.model_name.human(count: :other) } # Set options that will be passed to the paginate call. # # example for bootstrap 3 (You will need to add the bootstrap3-kaminari-views gem to your Gemfile): # # config.pagination_options_proc = ->(view) { { theme: 'twitter-bootstrap-3' } # # example for bootstrap 4 (You will need to add the bootstrap4-kaminari-views gem to your Gemfile): # # config.pagination_options_proc = ->(view) { { theme: 'twitter-bootstrap-4' } # # default: config.pagination_options_proc = ->(view) { { theme: 'twitter-bootstrap-4', pagination_class: 'justify-content-center' } } # config.pagination_options_proc = ->(view) { { theme: 'twitter-bootstrap-4', pagination_class: 'justify-content-center' } } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecm_blog-1.2.1 | lib/generators/ecm/blog/install/templates/initializer.rb |
ecm_blog-1.2.0 | lib/generators/ecm/blog/install/templates/initializer.rb |