Sha256: 4e2c977387b9acdd538938802b5d936e046a6315c408d85a38ab827257467369
Contents?: true
Size: 361 Bytes
Versions: 22
Compression:
Stored size: 361 Bytes
Contents
module Cms module Behaviors # Assumes the 'extended' class is an instance of ActiveModel module Naming # Returns the name of this content block as it will appear in paths. # # Examples: # HtmlBlock -> html_blocks # Thing -> things def path_name model_name.element.pluralize end end end end
Version data entries
22 entries across 22 versions & 2 rubygems