Class: Apidae::Project
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Apidae::Project
- Defined in:
- app/models/apidae/project.rb
Instance Method Summary collapse
- #cleanup_selections ⇒ Object
- #locales ⇒ Object
- #locales=(values) ⇒ Object
- #versions ⇒ Object
- #versions=(values) ⇒ Object
Instance Method Details
#cleanup_selections ⇒ Object
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 |
#locales ⇒ Object
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 |
#versions ⇒ Object
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 |