Module: Inkling::Types::InstanceMethods
- Defined in:
- lib/inkling/types.rb
Instance Method Summary collapse
-
#create_path ⇒ Object
Creates a path to represent the ContentType instance; the path is used for routing, etc..
- #update_path ⇒ Object
Instance Method Details
#create_path ⇒ Object
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_path ⇒ Object
31 32 33 34 |
# File 'lib/inkling/types.rb', line 31 def update_path self.path.update_slug! self.path.save! end |