mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-09 21:56:32 +08:00
fixed project_my_module method
This commit is contained in:
parent
6053c782f9
commit
c27ffa9fbf
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ class Project < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def project_my_modules
|
def project_my_modules
|
||||||
experiments.collect{ |exp| exp.my_modules }.first
|
MyModule.where('"experiment_id" IN (?)', experiments.select(:id))
|
||||||
end
|
end
|
||||||
|
|
||||||
def space_taken
|
def space_taken
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue