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/publicable.rb

10 lines
169 B

6 years ago
module Publicable
extend ActiveSupport::Concern
included do
alias_attribute :public, :is_public
enum public: { publiced: 1, hidden: 0 }
end
end