Skip to content

Commit

Permalink
Merge pull request ManageIQ#15532 from jntullo/virtual_attributes_cat…
Browse files Browse the repository at this point in the history
…egories

Make namespace into a virtual attribute
  • Loading branch information
gtanzillo authored Jul 10, 2017
2 parents b428b90 + 0af248e commit 35e4d83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/classification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Classification < ApplicationRecord
belongs_to :tag

virtual_column :name, :type => :string
virtual_column :ns, :type => :string

before_save :save_tag
before_destroy :delete_tags_and_entries
Expand Down

0 comments on commit 35e4d83

Please sign in to comment.