aboutsummaryrefslogtreecommitdiffstats
path: root/config/initializers/refinery/resources.rb
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2013-01-25 21:53:05 +0100
committerHarald Eilertsen <haraldei@anduin.net>2013-01-25 21:53:05 +0100
commitf087c23c8600fe197d3a59f4a0cd839754459b37 (patch)
tree5577105a38545b143efec0bdb8c134bea04005c8 /config/initializers/refinery/resources.rb
downloadhmnoweb-f087c23c8600fe197d3a59f4a0cd839754459b37.tar.gz
hmnoweb-f087c23c8600fe197d3a59f4a0cd839754459b37.tar.bz2
hmnoweb-f087c23c8600fe197d3a59f4a0cd839754459b37.zip
Initial commit.
Diffstat (limited to 'config/initializers/refinery/resources.rb')
-rw-r--r--config/initializers/refinery/resources.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/config/initializers/refinery/resources.rb b/config/initializers/refinery/resources.rb
new file mode 100644
index 0000000..d2fe7f9
--- /dev/null
+++ b/config/initializers/refinery/resources.rb
@@ -0,0 +1,27 @@
+# encoding: utf-8
+Refinery::Resources.configure do |config|
+ # Configures the maximum allowed upload size (in bytes) for a file upload
+ # config.max_file_size = 52428800
+
+ # Configure how many resources per page should be displayed when a dialog is presented that contains resources
+ # config.pages_per_dialog = 12
+
+ # Configure how many resources per page should be displayed in the list of resources in the admin area
+ # config.pages_per_admin_index = 20
+
+ # Configure S3 (you can also use ENV for this)
+ # The s3_backend setting by default defers to the core setting for this but can be set just for resources.
+ # config.s3_backend = Refinery::Core.s3_backend
+ # config.s3_bucket_name = ENV['S3_BUCKET']
+ # config.s3_access_key_id = ENV['S3_KEY']
+ # config.s3_secret_access_key = ENV['S3_SECRET']
+ # config.s3_region = ENV['S3_REGION]
+
+ # Configure Dragonfly
+ # This is where in the middleware stack to insert the Dragonfly middleware
+ # config.dragonfly_insert_before = "ActionDispatch::Callbacks"
+ # config.dragonfly_secret = "d1122d494d5ff96a870d13bcd2ea0b9f2d9bf1fbd0cbc59b"
+ # config.dragonfly_url_format = "/system/resources/:job/:basename.:format"
+ # config.datastore_root_path = "/home/haraldei/src/religionsfrihet.no/public/system/refinery/resources"
+
+end