Last active
August 8, 2020 18:22
-
-
Save Syntaf/893eb5de46c95a249f4401e9a9f6e1cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/models/group.rb | |
class Group < ApplicationRecord | |
include Moderate::GroupConfig | |
include Sluggable | |
# ... | |
end | |
# app/models/concerns/moderate/group_config.rb | |
module Moderate | |
module GroupConfig | |
extend ActiveSupport::Concern | |
included do | |
rails_admin do | |
edit do | |
# ... | |
end | |
list do | |
# ... | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment