Class: Apidae::Project

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/apidae/project.rb

Instance Method Summary collapse

Instance Method Details

#cleanup_selectionsObject



24
25
26
27
28
# File 'app/models/apidae/project.rb', line 24

def cleanup_selections
  apidae_selections.reload.each do |s|
    s.cleanup
  end
end

#localesObject



8
9
10
# File 'app/models/apidae/project.rb', line 8

def locales
  locales_data.blank? ? [] : locales_data.split('|')
end

#locales=(values) ⇒ Object



12
13
14
# File 'app/models/apidae/project.rb', line 12

def locales=(values)
  self.locales_data = values.blank? ? nil : values.join('|')
end

#versionsObject



16
17
18
# File 'app/models/apidae/project.rb', line 16

def versions
  versions_data.blank? ? [] : versions_data.split('|')
end

#versions=(values) ⇒ Object



20
21
22
# File 'app/models/apidae/project.rb', line 20

def versions=(values)
  self.versions_data = values.blank? ? nil : values.join('|')
end