diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-05 17:46:36 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-05 17:46:36 +0200 |
commit | ae1fac006206ab28cd7cba63ab85c07a27f3d606 (patch) | |
tree | 61f9cd45d7ed804eab85ae6a28cee584af90bfe3 /config | |
parent | 05001d54d15c486caa6cebe9462222d37d87576d (diff) |
Add API to upload media attachments
Diffstat (limited to 'config')
-rw-r--r-- | config/environments/test.rb | 2 | ||||
-rw-r--r-- | config/routes.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb index fea1c51fd..1855aadf2 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -41,3 +41,5 @@ Rails.application.configure do # Raises error for missing translations # config.action_view.raise_on_missing_translations = true end + +Paperclip::Attachment.default_options[:path] = "#{Rails.root}/spec/test_files/:class/:id_partition/:style.:extension" diff --git a/config/routes.rb b/config/routes.rb index 7b6b1ab3a..918eb7347 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -54,6 +54,7 @@ Rails.application.routes.draw do end resources :follows, only: [:create] + resources :media, only: [:create] resources :accounts, only: [:show] do collection do |