Module: Pulp::Common::Lifecycle::Update

Defined in:
lib/pulp/common/lifecycle/update.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'lib/pulp/common/lifecycle/update.rb', line 5

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#saveObject



9
10
11
12
13
# File 'lib/pulp/common/lifecycle/update.rb', line 9

def save
  res = self.class.update(self.id,user_fields.reject{|key,value| self.class.special_fields.include?(key) })
  refresh if self.respond_to?(:refresh)
  res
end