Skip to content

Commit

Permalink
update to federails 0.4 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Dec 9, 2024
1 parent 8d9b814 commit 0fb29ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@ gem "factory_bot_rails"
gem "faker", "~> 3.5"

gem "pundit"
gem "federails", git: "https://gitlab.com/ExperimentsLabs/federails", ref: "main"

gem "byebug"
2 changes: 1 addition & 1 deletion federails-moderation.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
end
spec.add_dependency "rails", ">= 7.2.2"
spec.add_dependency "federails", "~> 0.3"
spec.add_dependency "federails", "~> 0.4"
spec.add_dependency "public_suffix", "~> 6.0"
end
2 changes: 1 addition & 1 deletion spec/dummy/app/models/user.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class User < ApplicationRecord
include Federails::Entity
include Federails::ActorEntity

acts_as_federails_actor username_field: :id, name_field: :id
end

0 comments on commit 0fb29ac

Please sign in to comment.