Module: Ideasbugs

Defined in:
lib/ideasbugs.rb,
lib/ideasbugs/engine.rb,
lib/ideasbugs/widget.rb,
lib/ideasbugs/version.rb,
lib/ideasbugs/configuration.rb,
app/models/ideasbugs/feedback.rb,
app/helpers/ideasbugs/widget_helper.rb,
app/models/ideasbugs/application_record.rb,
app/controllers/ideasbugs/widgets_controller.rb,
app/controllers/ideasbugs/feedbacks_controller.rb,
app/controllers/ideasbugs/application_controller.rb,
app/controllers/ideasbugs/screenshots_controller.rb,
lib/generators/ideasbugs/install/install_generator.rb

Overview

In-app product feedback collection for Rails. A drop-in widget lets users send bug reports, feature requests, and general feedback (with screenshots) from any page; submissions land in your own database, with a minimal built-in dashboard to browse and triage them.

Defined Under Namespace

Modules: Generators, Widget, WidgetHelper Classes: ApplicationController, ApplicationRecord, Configuration, Engine, Feedback, FeedbacksController, ScreenshotsController, WidgetsController

Constant Summary collapse

VERSION =
'0.5.5'

Class Method Summary collapse

Class Method Details

.admin?(request) ⇒ Boolean

Can this request browse and triage feedback? Checked by every dashboard action.

Returns:

  • (Boolean)


30
31
32
# File 'lib/ideasbugs.rb', line 30

def admin?(request)
  !!config.authorize_admin.call(request)
end

.configObject



14
15
16
# File 'lib/ideasbugs.rb', line 14

def config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



18
19
20
# File 'lib/ideasbugs.rb', line 18

def configure
  yield config
end

.enabled?(request) ⇒ Boolean

Can this request send feedback? Checked on the server for the endpoint and by the helper before rendering the widget.

Returns:

  • (Boolean)


24
25
26
# File 'lib/ideasbugs.rb', line 24

def enabled?(request)
  !!config.enabled.call(request)
end