Class: Pattern

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/app/models/pattern.rb

Instance Method Summary collapse

Instance Method Details

#owner_type=(stype) ⇒ Object



4
5
6
# File 'lib/app/models/pattern.rb', line 4

def owner_type=(stype)
     super(stype.to_s.classify.constantize.base_class.to_s)
end