Class: ActiveAttack::Version
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ActiveAttack::Version
- Defined in:
- app/models/active_attack/version.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.create_version(ver) ⇒ Object
5 6 7 8 |
# File 'app/models/active_attack/version.rb', line 5 def self.create_version(ver) vers = find_or_create_by(version:ver) vers end |
Instance Method Details
#convert_to_json ⇒ Object
10 11 12 |
# File 'app/models/active_attack/version.rb', line 10 def convert_to_json version end |