Skip to content

Commit

Permalink
Add frozen_string_literal: true
Browse files Browse the repository at this point in the history
  • Loading branch information
lgebhardt committed Sep 19, 2023
1 parent 01ba9a0 commit c70bd4c
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/generators/jsonapi/controller_generator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Jsonapi
class ControllerGenerator < Rails::Generators::NamedBase
source_root File.expand_path('../templates', __FILE__)
Expand Down
2 changes: 2 additions & 0 deletions lib/generators/jsonapi/resource_generator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Jsonapi
class ResourceGenerator < Rails::Generators::NamedBase
source_root File.expand_path('../templates', __FILE__)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module JSONAPI
module ActiveRelation
module Adapters
Expand All @@ -23,4 +25,4 @@ def joins_left(*columns)
end
end
end
end
end
2 changes: 2 additions & 0 deletions lib/jsonapi/active_relation/join_manager.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module JSONAPI
module ActiveRelation

Expand Down
2 changes: 2 additions & 0 deletions lib/jsonapi/active_relation/join_manager_v10.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module JSONAPI
module ActiveRelation

Expand Down
2 changes: 2 additions & 0 deletions lib/jsonapi/active_relation_retrieval.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module JSONAPI
module ActiveRelationRetrieval
def find_related_ids(relationship, options = {})
Expand Down
2 changes: 2 additions & 0 deletions lib/jsonapi/active_relation_retrieval_v09.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module JSONAPI
module ActiveRelationRetrievalV09
def find_related_ids(relationship, options = {})
Expand Down
4 changes: 3 additions & 1 deletion lib/jsonapi/resources/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module JSONAPI
module Resources
class Railtie < Rails::Railtie
Expand All @@ -6,4 +8,4 @@ class Railtie < Rails::Railtie
end
end
end
end
end
2 changes: 2 additions & 0 deletions lib/jsonapi/resources/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module JSONAPI
module Resources
VERSION = '0.11.0.beta1'
Expand Down
2 changes: 2 additions & 0 deletions lib/jsonapi/simple_resource.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'jsonapi/callbacks'
require 'jsonapi/configuration'

Expand Down
2 changes: 2 additions & 0 deletions lib/tasks/check_upgrade.rake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rake'
require 'jsonapi-resources'

Expand Down

0 comments on commit c70bd4c

Please sign in to comment.