Module: Feedy
- Defined in:
- lib/feedy.rb,
lib/feedy/engine.rb,
lib/feedy/version.rb,
app/models/feedy/feedback.rb,
app/helpers/feedy/feedback_helper.rb,
app/helpers/feedy/application_helper.rb,
lib/generators/feedy/install_generator.rb,
app/controllers/feedy/feedbacks_controller.rb,
app/controllers/feedy/application_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, FeedbackHelper, Generators
Classes: ApplicationController, Engine, Feedback, FeedbacksController
Constant Summary
collapse
- VERSION =
"0.0.4"
Class Method Summary
collapse
Class Method Details
.anonymous_feedback ⇒ Object
24
25
26
|
# File 'lib/feedy.rb', line 24
def anonymous_feedback
@@anonymous_feedback || false
end
|
.current_user_helper ⇒ Object
20
21
22
|
# File 'lib/feedy.rb', line 20
def current_user_helper
@@current_user_helper || :current_user
end
|
.extend_user_class! ⇒ Object
10
11
12
13
14
|
# File 'lib/feedy.rb', line 10
def extend_user_class!
Feedy.user_class.class_eval do
has_many :feedbacks, as: :author, class_name: "Feedy::Feedback", dependent: :destroy
end
end
|
.user_class ⇒ Object
16
17
18
|
# File 'lib/feedy.rb', line 16
def user_class
Object.const_get(@@user_class) if @@user_class
end
|