Module: BugReportsClient
- Defined in:
- lib/bug_reports_client.rb,
lib/bug_reports_client/engine.rb,
lib/bug_reports_client/version.rb,
lib/bug_reports_client/form_schema.rb,
lib/bug_reports_client/configuration.rb,
lib/bug_reports_client/error_context.rb,
lib/bug_reports_client/error_reporter.rb,
lib/bug_reports_client/main_app_routes.rb,
app/models/bug_reports_client/bug_report.rb,
app/models/bug_reports_client/error_event.rb,
app/services/bug_reports_client/api_client.rb,
app/jobs/bug_reports_client/report_error_job.rb,
app/models/concerns/bug_reports_client/reporter.rb,
app/models/bug_reports_client/application_record.rb,
app/helpers/bug_reports_client/bug_reports_helper.rb,
app/services/bug_reports_client/description_builder.rb,
app/controllers/bug_reports_client/webhooks_controller.rb,
lib/generators/bug_reports_client/views/views_generator.rb,
app/controllers/bug_reports_client/application_controller.rb,
app/controllers/bug_reports_client/bug_reports_controller.rb,
lib/generators/bug_reports_client/install/install_generator.rb
Defined Under Namespace
Modules: BugReportsHelper, ErrorContext, Generators, MainAppRoutes, Reporter Classes: ApiClient, ApplicationController, ApplicationRecord, BugReport, BugReportsController, Configuration, ConfigurationError, DescriptionBuilder, Engine, ErrorEvent, ErrorReporter, FormSchema, ReportErrorJob, SchemaError, WebhooksController
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
- .config ⇒ Object
- .configure {|config| ... } ⇒ Object
-
.form_schema ⇒ Object
The active form schema (host override or the engine default).
-
.reset_config! ⇒ Object
Replaces the configuration entirely.
Class Method Details
.config ⇒ Object
20 21 22 |
# File 'lib/bug_reports_client.rb', line 20 def config @config ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
24 25 26 |
# File 'lib/bug_reports_client.rb', line 24 def configure yield(config) end |
.form_schema ⇒ Object
The active form schema (host override or the engine default).
35 36 37 |
# File 'lib/bug_reports_client.rb', line 35 def form_schema FormSchema.current end |
.reset_config! ⇒ Object
Replaces the configuration entirely. Used by tests to reset state.
29 30 31 32 |
# File 'lib/bug_reports_client.rb', line 29 def reset_config! @config = Configuration.new FormSchema.reset! end |