forked from refinery/refinerycms
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Resource::PAGES_PER_DIALOG constant into Engine configurable…
… option pages_per_dialog
- Loading branch information
Jamie Winsor
committed
Sep 8, 2011
1 parent
66ef3fc
commit ac88125
Showing
5 changed files
with
20 additions
and
7 deletions.
There are no files selected for viewing
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
3 changes: 3 additions & 0 deletions
3
resources/lib/generators/templates/config/initializers/refinery_resources.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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
Refinery::Resources::Options.configure do |config| | ||
# Configures the maximum allowed upload size for a file upload | ||
# config.max_file_size = <%= Refinery::Resources::Options::DEFAULT_MAX_FILE_SIZE %> | ||
|
||
# Configure how many resources per page should be displayed when a dialog is presented that contains resources | ||
config.pages_per_dialog = <%= Refinery::Resources::Options::DEFAULT_PAGES_PER_DIALOG %> | ||
end |
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
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
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