Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Koi Versioned
Ruby JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
.ruby-gemset
.ruby-version
.travis.yml
Gemfile
Gemfile.lock
MIT-LICENSE
README.md
Rakefile
koi_versioned.gemspec

README.md

Koi Versioned Build Status Code Climate Dependency Status

Adds capability to ActiveRecord for storing drafts

Active Record

class Post < ActiveRecord::Base
  koi_draftable
end

Usage

post = Post.create(title: "Guide to Git", body: "Git rocks my world!!!")

post.title = "Subversion to Git"
post.draft!

post.draft?
>> true

post.title
>> "Guide to Git"

post.draft.title
>> "Subversion to Git"

post.publish?
>> true

post.title
>> "Subversion to Git"
Something went wrong with that request. Please try again.