Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refinery_images initializer will now be generated with the default va…
…lues for the configuration options dynamically
- Loading branch information
Jamie Winsor
committed
Sep 7, 2011
1 parent
85d2314
commit 59b6fbf
Showing
4 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
images/lib/generators/files/config/initializers/refinery_images.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
images/lib/generators/templates/config/initializers/refinery_images.rb.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Refinery::Images::Options.configure do |config| | ||
# Configures the maximum allowed upload size for an image | ||
# config.max_image_size = <%= Refinery::Images::Options::DEFAULT_MAX_IMAGE_SIZE %> | ||
|
||
# Configure how many images per page should be displayed when a dialog is presented that contains images | ||
# config.pages_per_dialog = <%= Refinery::Images::Options::DEFAULT_PAGES_PER_DIALOG %> | ||
|
||
# Configure how many images per page should be displayed when a dialog is presented that | ||
# contains images and image resize options | ||
# config.pages_per_dialog_that_have_size_options = <%= Refinery::Images::Options::DEFAULT_PAGES_PER_DIALOG_THAT_HAVE_SIZE_OPTIONS %> | ||
|
||
# Configure how many images per page should be displayed in the list of images in the admin area | ||
# config.pages_per_admin_index = <%= Refinery::Images::Options::DEFAULT_PAGES_PER_ADMIN_INDEX %> | ||
end |
File renamed without changes.