var search_data = {"index":{"searchIndex":["datamapper","is","published","classmethods","instancemethods","resourceinstancemethods","all()","is_published()","publish_states_as_json()","publishable?()","publishable?()","readme"],"longSearchIndex":["datamapper","datamapper::is","datamapper::is::published","datamapper::is::published::classmethods","datamapper::is::published::instancemethods","datamapper::is::published::resourceinstancemethods","datamapper::is::published::classmethods#all()","datamapper::is::published#is_published()","datamapper::is::published::classmethods#publish_states_as_json()","datamapper::is::published::instancemethods#publishable?()","datamapper::is::published::resourceinstancemethods#publishable?()",""],"info":[["DataMapper","","classes/DataMapper.html","",""],["DataMapper::Is","","classes/DataMapper/Is.html","",""],["DataMapper::Is::Published","","classes/DataMapper/Is/Published.html","","
dm-is-published\n
This plugin makes it very easy to add different states to your models, like\n‘draft’ vs …\n"],["DataMapper::Is::Published::ClassMethods","","classes/DataMapper/Is/Published/ClassMethods.html","",""],["DataMapper::Is::Published::InstanceMethods","","classes/DataMapper/Is/Published/InstanceMethods.html","",""],["DataMapper::Is::Published::ResourceInstanceMethods","","classes/DataMapper/Is/Published/ResourceInstanceMethods.html","",""],["all","DataMapper::Is::Published::ClassMethods","classes/DataMapper/Is/Published/ClassMethods.html#method-i-all","(*args)","
Overriding the normal #all method to add some extra sugar.\n
Examples\n\n
Article.all => returns all Articles ...\n\n"],["is_published","DataMapper::Is::Published","classes/DataMapper/Is/Published.html#method-i-is_published","(*args)","
method that adds a basic published status attribute to your model\n
params \n
states
- an array of 'states' ...\n"],["publish_states_as_json","DataMapper::Is::Published::ClassMethods","classes/DataMapper/Is/Published/ClassMethods.html#method-i-publish_states_as_json","()","
Returns a JSON representation of the publish states, where each state is\nrepresented as a lowercase …\n"],["publishable?","DataMapper::Is::Published::InstanceMethods","classes/DataMapper/Is/Published/InstanceMethods.html#method-i-publishable-3F","()","
Ensuring all models using this plugin responds to publishable? with true.\n
Examples\n\n
@published_model.publishable? ...\n"],["publishable?","DataMapper::Is::Published::ResourceInstanceMethods","classes/DataMapper/Is/Published/ResourceInstanceMethods.html#method-i-publishable-3F","()","
Ensuring all models NOT using this plugin responds to publishable? with\nfalse.\n
Examples\n\n
@unpublished_model.publishable? ...\n"],["README","","files/README_rdoc.html","","
dm-is-published\n
This plugin makes it very easy to add different states to your models, like\n‘draft’ vs …\n"]]}}