app/models/federails/actor.rb in federails-0.2.0 vs app/models/federails/actor.rb in federails-0.3.0
- old
+ new
@@ -89,10 +89,12 @@
false
end
def entity_configuration
- Federails::Configuration.entity_types[entity.class.name]
+ raise("Entity not configured for #{entity_type}. Did you use \"acts_as_federails_actor\"?") unless Federails::Configuration.entity_types.key? entity_type
+
+ Federails::Configuration.entity_types[entity_type]
end
class << self
def find_by_account(account) # rubocop:todo Metrics/AbcSize
parts = Fediverse::Webfinger.split_account account