Defect #5817 ยป query.rb.diff
| app/models/query.rb (working copy) | ||
|---|---|---|
|
# Returns the versions
|
||
|
# Valid options are :conditions
|
||
|
def versions(options={})
|
||
|
Version.find :all, :include => :project,
|
||
|
:conditions => Query.merge_conditions(project_statement, options[:conditions])
|
||
|
@project.shared_versions.all :conditions => options[:conditions]
|
||
|
rescue ::ActiveRecord::StatementInvalid => e
|
||
|
raise StatementInvalid.new(e.message)
|
||
|
end
|
||