alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Element::ElementContents#update_contents
Updates all related contents by calling +update_essence+ on each of them.
== Example
@element.update_contents(
"1" => {ingredient: "Title"},
"2" => {link: "https://google.com"}
)Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/models/alchemy/element/element_contents.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--Element--ElementContents-update_contents-for-pr
# Commit to gitgit add app/models/alchemy/element/element_contents.rbgit commit -m "better docs for Alchemy::Element::ElementContents#update_contents"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--Element--ElementContents-update_contents-for-pr
hub pull-request
# Celebrate!