These are chat archives for shirasagi/shirasagi

30th
Sep 2015
tany
@tany
Sep 30 2015 19:35
メソッドがpublicにならない原因わろち
Hoge.new.public_method # private method `public_method' called

class Hoge
  include Mongoid::Document
  scope :public, -> { where state: :public }
  private
    def private_method; end
  public
    def public_method; end
end