Module: Inkling::Types::InstanceMethods

Defined in:
lib/inkling/types.rb

Instance Method Summary collapse

Instance Method Details

#create_pathObject

Creates a path to represent the ContentType instance; the path is used for routing, etc..



25
26
27
28
29
# File 'lib/inkling/types.rb', line 25

def create_path
  path = Inkling::Path.new
  path.content = self
  path.save!
end

#update_pathObject



31
32
33
34
# File 'lib/inkling/types.rb', line 31

def update_path
  self.path.update_slug!
  self.path.save!
end