forgeplus/app/models/concerns/lockable.rb

11 lines
158 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
module Lockable
extend ActiveSupport::Concern
included do
end
def locked?(is_member)
is_member == true ? false : !publiced?
end
end