Method: Thredded.view_hooks

Defined in:
lib/thredded.rb

.view_hooksThredded::AllViewHooks

Returns View hooks configuration.

Returns:



133
134
135
136
# File 'lib/thredded.rb', line 133

def view_hooks
  Thredded::AllViewHooks.instance ||
    fail('`Thredded.view_hooks` must be configured in a `Rails.application.config.to_prepare` block!')
end