lib/alchemy/hints.rb in alchemy_cms-6.1.10 vs lib/alchemy/hints.rb in alchemy_cms-7.0.0.pre.a

- old
+ new

@@ -2,36 +2,36 @@ module Alchemy module Hints # Returns a hint # - # To add a hint to a content pass +hint: true+ to the element definition in its element.yml + # To add a hint to a ingredient pass +hint: true+ to the element definition in its element.yml # # Then the hint itself is placed in the locale yml files. # # Alternativly you can pass the hint itself to the hint key. # # == Locale Example: # # # elements.yml # - name: headline - # contents: - # - name: headline - # type: EssenceText - # hint: true + # ingredients: + # - role: headline + # type: Text + # hint: true # # # config/locales/de.yml # de: - # content_hints: + # ingredient_hints: # headline: Lorem ipsum # # == Hint Key Example: # # - name: headline - # contents: - # - name: headline - # type: EssenceText - # hint: Lorem ipsum + # ingredients: + # - role: headline + # type: Text + # hint: Lorem ipsum # # @return String # def hint hint = definition[:hint]