lib/federails/configuration.rb in federails-0.3.0 vs lib/federails/configuration.rb in federails-0.4.0

- old
+ new

@@ -57,15 +57,15 @@ def self.site_port=(value) @@site_port = value Federails::Engine.routes.default_url_options[:port] = value end - # List of entity types - mattr_reader :entity_types - @@entity_types = {} + # List of actor types (classes using Federails::ActorEntity) + mattr_reader :actor_types + @@actor_types = {} - def self.register_entity(klass, config = {}) - @@entity_types[klass.name] = config.merge(class: klass) + def self.register_actor_class(klass, config = {}) + @@actor_types[klass.name] = config.merge(class: klass) end end # rubocop:enable Style/ClassVars end