No commit activity in last 3 years
No release in over 3 years
Acts as page for mongoid models
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Acts As Page

Installation

Add the following to your Gemfile:

gem 'mongoid_acts_as_page'

Run bundle install:

$ bundle install

Usages

Add the following to your model and enjoy:

include ActsAsPage

You can use field "name" to set or get name of page:

page = YourModel.new name: 'new_page'
page.name #=> new page

Use method 'seo' for get or set seo information of the page like a title, keywords or description

page = YourModel.new name: 'new_page'
page.seo.title #=> new page

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request