Module: KirguduBase::Models::UncloneableProperties
- Included in:
- BaseModel
- Defined in:
- app/helpers/kirgudu_base/models/uncloneable_properties.rb
Instance Method Summary collapse
Instance Method Details
#unclonable_properties_set ⇒ Object
13 14 15 16 17 18 |
# File 'app/helpers/kirgudu_base/models/uncloneable_properties.rb', line 13 def unclonable_properties_set if defined?(@unclonable_properties_set) == false || @unclonable_properties_set.nil? || !@unclonable_properties_set.is_a?(Array) @unclonable_properties_set = [] end @unclonable_properties_set end |
#unclonable_property(*args) ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/helpers/kirgudu_base/models/uncloneable_properties.rb', line 5 def unclonable_property(*args) args.each do |arg| if self.respond_to?(arg) unclonable_properties_set.push(arg.to_s) end end end |