alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Element.copy
This methods does a copy of source and all depending contents and all of their depending essences.
== Options
You can pass a differences Hash as second option to update attributes for the copy.
== Example
@copy = Alchemy::Element.copy(@element, {public: false})
@copy.public? # => falseEdit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/models/alchemy/element.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--Element-copy-for-pr
# Commit to gitgit add app/models/alchemy/element.rbgit commit -m "better docs for Alchemy::Element.copy"
# 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-copy-for-pr
hub pull-request
# Celebrate!