lib/publishable/acts_as_publishable.rb
# Wraps ActiveRecord::Base.find to conveniently find all records in
# published status.  Options:
#
# * +number+ - This is just :first or :all from ActiveRecord +find+
# * +args+ - The rest of the args are passed down to ActiveRecord +find+
Wraps ActiveRecord::Base.find to conveniently find all records in
published status.  Options.


Wraps ActiveRecord :: Base . find to conveniently find all records in published status . Options .
def find_in_published(number, *args)
        with_status_scope :published do
          find(number, *args)
        end
      end
def find_in_published ( number , * args ) with_status_scope :published do find ( number , * args ) end end
Wraps ActiveRecord::Base.find to conveniently find all records in
published status.
Wraps ActiveRecord :: Base . find to conveniently find all records in published status .
number
args