You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/models/concerns/lockable.rb

11 lines
158 B

6 years ago
module Lockable
extend ActiveSupport::Concern
included do
end
def locked?(is_member)
is_member == true ? false : !publiced?
end
end