Sha256: 29df2c37c469c27d320cf306531677a4766f65064add80feff8d98e02dc0e6c9
Contents?: true
Size: 1.73 KB
Versions: 4
Compression:
Stored size: 1.73 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' } } # Options for rendering the ActiveStorage preview picture in the posts index view. # # Default: config.preview_picture_asset_variant_options = { resize: '320x240' } # config.preview_picture_asset_variant_options = { resize: '320x240' } end
Version data entries
4 entries across 4 versions & 2 rubygems