Class: ContentProviders::ThoughtPatternsIndexProvider

Inherits:
BitCore::ContentProvider
  • Object
show all
Defined in:
app/models/content_providers/thought_patterns_index_provider.rb

Overview

Provides a list of all ThoughtPatterns.

Instance Method Summary collapse

Instance Method Details

#data_class_nameObject



5
6
7
# File 'app/models/content_providers/thought_patterns_index_provider.rb', line 5

def data_class_name
  "ThoughtPattern"
end

#render_current(options) ⇒ Object



13
14
15
16
17
18
19
20
# File 'app/models/content_providers/thought_patterns_index_provider.rb', line 13

def render_current(options)
  options.view_context.render(
    template: "think_feel_do_engine/thought_patterns/index",
    locals: {
      thought_patterns: ThoughtPattern.all
    }
  )
end

#show_nav_link?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/models/content_providers/thought_patterns_index_provider.rb', line 9

def show_nav_link?
  false
end