diff --git a/app/models/experiment.rb b/app/models/experiment.rb index 9f9b0d629..86671e8c8 100644 --- a/app/models/experiment.rb +++ b/app/models/experiment.rb @@ -13,7 +13,7 @@ class Experiment < ActiveRecord::Base has_many :my_module_groups, inverse_of: :experiment, dependent: :destroy has_many :report_elements, inverse_of: :experiment, dependent: :destroy - has_attached_file :workflowimg, styles: { medium: '300x300>' } + has_attached_file :workflowimg validates_attachment_content_type :workflowimg, content_type: /\Aimage\/.*\Z/ validates :name, diff --git a/app/views/projects/show/_experiment.html.erb b/app/views/projects/show/_experiment.html.erb index f32d2c69b..36b576b0f 100644 --- a/app/views/projects/show/_experiment.html.erb +++ b/app/views/projects/show/_experiment.html.erb @@ -36,7 +36,7 @@