Module: Athar
- Defined in:
- lib/athar.rb,
lib/athar/sql.rb,
lib/athar/engine.rb,
lib/athar/context.rb,
lib/athar/version.rb,
lib/athar/deletion.rb,
lib/athar/dashboard.rb,
lib/athar/retention.rb,
lib/athar/table_event.rb,
lib/athar/actor_lookup.rb,
lib/athar/configuration.rb,
lib/athar/retention_job.rb,
lib/athar/metadata_stack.rb,
lib/athar/dashboard/sparkline.rb,
app/helpers/athar/asset_helper.rb,
lib/athar/dashboard/feed_query.rb,
lib/athar/dashboard/filter_set.rb,
lib/generators/athar/fx_helper.rb,
lib/athar/dashboard/actor_labels.rb,
lib/athar/dashboard/actor_options.rb,
lib/athar/middleware/asset_server.rb,
app/helpers/athar/dashboard_helper.rb,
lib/athar/dashboard/kpi_calculator.rb,
lib/athar/dashboard/model_registry.rb,
lib/athar/dashboard/connection_info.rb,
app/controllers/athar/themes_controller.rb,
app/helpers/athar/dashboard/cell_helper.rb,
app/helpers/athar/dashboard/icon_helper.rb,
lib/athar/dashboard/trigger_args_parser.rb,
lib/generators/athar/mask/mask_generator.rb,
app/helpers/athar/dashboard/detail_helper.rb,
app/controllers/athar/dashboard_controller.rb,
app/controllers/athar/deletions_controller.rb,
lib/generators/athar/model/model_generator.rb,
app/controllers/athar/application_controller.rb,
app/controllers/athar/table_events_controller.rb,
app/helpers/athar/dashboard/formatting_helper.rb,
app/helpers/athar/dashboard/filter_link_helper.rb,
lib/generators/athar/install/install_generator.rb
Defined Under Namespace
Modules: ActorLookup, AssetHelper, Context, Dashboard, DashboardHelper, Generators, Middleware, Retention, SQL
Classes: ApplicationController, Configuration, ConfigurationError, DashboardController, Deletion, DeletionsController, Engine, Error, MetadataStack, RetentionJob, TableEvent, TableEventsController, ThemesController
Constant Summary
collapse
- VERSION =
"0.3.4"
- DELETIONS_TABLE_NAME =
"athar_deletions"
- TABLE_EVENTS_TABLE_NAME =
"athar_table_events"
Class Method Summary
collapse
Class Method Details
.audit_connection ⇒ Object
The connection both audit tables share. The install migration creates ‘athar_deletions` and `athar_table_events` together, and the dashboard composes them via UNION — so they must live on a single physical connection. Centralized here so multi-DB hosts can route both via `Athar::Deletion.connects_to(…)` and the gem follows automatically.
64
65
66
|
# File 'lib/athar.rb', line 64
def audit_connection
Deletion.connection
end
|
.audit_db_config ⇒ Object
68
69
70
|
# File 'lib/athar.rb', line 68
def audit_db_config
Deletion.connection_db_config
end
|
.configuration ⇒ Object
27
28
29
|
# File 'lib/athar.rb', line 27
def configuration
@configuration ||= Configuration.new
end
|
31
32
33
|
# File 'lib/athar.rb', line 31
def configure
yield(configuration)
end
|
.logger ⇒ Object
39
40
41
|
# File 'lib/athar.rb', line 39
def logger
configuration.logger || (Rails.logger if defined?(Rails)) || Logger.new($stdout)
end
|
.reset_configuration! ⇒ Object
35
36
37
|
# File 'lib/athar.rb', line 35
def reset_configuration!
@configuration = Configuration.new
end
|
.with_actor ⇒ Object
43
44
45
|
# File 'lib/athar.rb', line 43
def with_actor(...)
Context.with_actor(...)
end
|
.without_capture ⇒ Object