We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecf16fd commit 6ce2b79Copy full SHA for 6ce2b79
app/serializers/application_serializer.rb
@@ -3,18 +3,6 @@ class ApplicationSerializer
3
include Alba::Resource
4
include Typelizer::DSL
5
6
- class << self
7
- def one(name, serializer: nil, **options)
8
- options[:resource] ||= serializer || "#{name}Serializer".classify.constantize
9
- super(name, **options)
10
- end
11
-
12
- def many(name, serializer: nil, **options)
13
- options[:resource] ||= serializer || "#{name.to_s.singularize}Serializer".classify.constantize
14
15
16
17
18
private
19
20
def default_url_options = ActiveStorage::Current.url_options
config/initializers/alba.rb
@@ -0,0 +1 @@
1
+Alba.inflector = :active_support
0 commit comments