Sha256: 4d5c1bdf142dab0f8ab9ccc934dcd8a4d7c1a4ec05d8345fc78c216ab76aacec
Contents?: true
Size: 487 Bytes
Versions: 8
Compression:
Stored size: 487 Bytes
Contents
== Acts as published Gives you a boolean reader/writer for a published_at (timestamp) column. == Installation Add it to your Gemfile: gem 'acts_as_published' Install your bundle: > bundle install == Usage You need a published_at:timestamp column In your model: class Post < ActiveRecord::Base # acts as published include ActsAsPublished::ActiveRecord acts_as_published # ... end == Scopes You get following scopes: Post.published Post.unpublished
Version data entries
8 entries across 8 versions & 1 rubygems