mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 19:52:18 -05:00
give collection and creator caber permissions
This commit is contained in:
4 files changed
+6
No files matched your search
@@ -1,5 +1,7 @@
|
||||
class Collection < ApplicationRecord
|
||||
include Followable
|
||||
include Caber::Object
|
||||
|
||||
acts_as_federails_actor username_field: :slug, name_field: :name, profile_url_method: :url_for, actor_type: "Collection", include_in_user_count: false
|
||||
|
||||
has_many :models, dependent: :nullify
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
class Creator < ApplicationRecord
|
||||
include Followable
|
||||
include Caber::Object
|
||||
|
||||
acts_as_federails_actor username_field: :slug, name_field: :name, profile_url_method: :url_for, include_in_user_count: false
|
||||
|
||||
has_many :models, dependent: :nullify
|
||||
|
||||
@@ -2,6 +2,7 @@ require "rails_helper"
|
||||
|
||||
RSpec.describe Collection do
|
||||
it_behaves_like "Followable"
|
||||
it_behaves_like "Caber::Object"
|
||||
|
||||
it "automatically generates a slug from the name" do
|
||||
collection = create(:collection, name: "Spın̈al Tap")
|
||||
|
||||
@@ -2,6 +2,7 @@ require "rails_helper"
|
||||
|
||||
RSpec.describe Creator do
|
||||
it_behaves_like "Followable"
|
||||
it_behaves_like "Caber::Object"
|
||||
|
||||
it "automatically generates a slug from the name" do
|
||||
creator = create(:creator, name: "Spın̈al Tap")
|
||||
|
||||
Reference in new issue
Block a user