Add this line to your application's Gemfile:
gem "knowledge_camp_step", :github => "mindpin/knowledge_camp_step", :tag => "0.1.8"And then execute:
$ bundleclass SomeStepOwnerModel
include Mongoid::Document
include KnowledgeCamp::Step::Owner
end
class User
include Mongoid::Document
include KnowledgeCamp::Step::NoteCreator
end
instance = SomeStepOwnerModel.create
user = User.frist
instance.steps #=> get related steps
instance.notes #=> get model related notes
user.notes #=> get creator related notes- Fork it ( https://github.com/mindpin/knowledge_camp_step/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request