Skip to content

Commit b15e1b7

Browse files
committed
Write out fully qualified path
1 parent e8bff38 commit b15e1b7

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

lib/fx.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def self.load
2828

2929
# @return [Fx::Configuration] F(x)'s current configuration
3030
def self.configuration
31-
@_configuration ||= Configuration.new
31+
@_configuration ||= Fx::Configuration.new
3232
end
3333

3434
# Set F(x)'s configuration

lib/fx/adapters/postgres.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def initialize(connectable = ActiveRecord::Base)
4747
#
4848
# @return [Array<Fx::Function>]
4949
def functions
50-
Functions.all(connection)
50+
Fx::Adapters::Postgres::Functions.all(connection)
5151
end
5252

5353
# Returns an array of triggers in the database.
@@ -57,7 +57,7 @@ def functions
5757
#
5858
# @return [Array<Fx::Trigger>]
5959
def triggers
60-
Triggers.all(connection)
60+
Fx::Adapters::Postgres::Triggers.all(connection)
6161
end
6262

6363
# Creates a function in the database.
@@ -152,7 +152,7 @@ def drop_trigger(name, on:)
152152
delegate :execute, to: :connection
153153

154154
def connection
155-
Connection.new(connectable.connection)
155+
Fx::Adapters::Postgres::Connection.new(connectable.connection)
156156
end
157157
end
158158
end

lib/fx/adapters/postgres/functions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Functions
3030
#
3131
# @return [Array<Fx::Function>]
3232
def self.all(connection)
33-
QueryExecutor.call(
33+
Fx::Adapters::Postgres::QueryExecutor.call(
3434
connection: connection,
3535
query: FUNCTIONS_WITH_DEFINITIONS_QUERY,
3636
model_class: Fx::Function

lib/fx/adapters/postgres/triggers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Triggers
3030
#
3131
# @return [Array<Fx::Trigger>]
3232
def self.all(connection)
33-
QueryExecutor.call(
33+
Fx::Adapters::Postgres::QueryExecutor.call(
3434
connection: connection,
3535
query: TRIGGERS_WITH_DEFINITIONS_QUERY,
3636
model_class: Fx::Trigger

lib/generators/fx/function/function_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def migration_class_name
7272
end
7373

7474
def formatted_name
75-
NameHelper.format_for_migration(singular_name)
75+
Fx::Generators::NameHelper.format_for_migration(singular_name)
7676
end
7777
end
7878

lib/generators/fx/trigger/trigger_generator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ def migration_class_name
6666
end
6767

6868
def formatted_name
69-
NameHelper.format_for_migration(singular_name)
69+
Fx::Generators::NameHelper.format_for_migration(singular_name)
7070
end
7171

7272
def formatted_table_name
73-
NameHelper.format_table_name_from_hash(table_name)
73+
Fx::Generators::NameHelper.format_table_name_from_hash(table_name)
7474
end
7575
end
7676

0 commit comments

Comments
 (0)