alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::Content::Factory::ClassMethods#copy
Makes a copy of source and also copies the associated essence.
You can pass a differences hash to update the attributes of the copy.
=== Example
@copy = Alchemy::Content.copy(@content, {:element_id => 3})
@copy.element_id # => 3Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/models/alchemy/content/factory.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--Content--Factory--ClassMethods-copy-for-pr
# Commit to gitgit add app/models/alchemy/content/factory.rbgit commit -m "better docs for Alchemy::Content::Factory::ClassMethods#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--Content--Factory--ClassMethods-copy-for-pr
hub pull-request
# Celebrate!