Module: Atrium
- Defined in:
- lib/atrium.rb,
lib/atrium/engine.rb,
lib/atrium/version.rb,
lib/atrium/exceptions.rb,
app/models/atrium/search/facet.rb,
app/models/atrium/configuration.rb,
app/helpers/atrium/exhibits_helper.rb,
app/helpers/atrium/showcases_helper.rb,
app/helpers/atrium/application_helper.rb,
app/helpers/atrium/collections_helper.rb,
app/helpers/atrium/descriptions_helper.rb,
app/controllers/atrium/order_controller.rb,
app/models/atrium/search/facet_selection.rb,
app/controllers/atrium/exhibits_controller.rb,
app/models/atrium/showcase/facet_selection.rb,
app/controllers/atrium/showcases_controller.rb,
app/controllers/atrium/application_controller.rb,
app/controllers/atrium/collections_controller.rb,
app/models/atrium/showcase/featured_selection.rb,
app/controllers/atrium/descriptions_controller.rb,
app/controllers/atrium/browse_levels_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, CollectionsHelper, DescriptionsHelper, ExhibitsHelper, IsShowcasedMixin, QueryParamMixin, ShowcasesHelper
Classes: ApplicationController, BrowseLevel, BrowseLevelsController, Collection, CollectionsController, Configuration, ConfigurationExpectation, ConfigurationNotSet, Description, DescriptionsController, Engine, Essay, Exhibit, ExhibitsController, InstallGenerator, OrderController, ServiceGenerator, Showcase, ShowcasesController, ThemeGenerator
Constant Summary
collapse
- VERSION =
"0.1.1"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
14
15
16
|
# File 'lib/atrium.rb', line 14
def config
@config || configure(OpenStruct.new)
end
|
Atrium interacts with Blacklight and we are hoping we will get a Blacklight::Configuration for the .configure method.
10
11
12
|
# File 'lib/atrium.rb', line 10
def configure(main_app_config, &block)
@config = Atrium::Configuration.new(main_app_config, &block)
end
|
.saved_items_for(user) ⇒ Object
37
38
39
40
41
42
43
|
# File 'lib/atrium.rb', line 37
def saved_items_for(user)
if user
saved_items_class.where(user_id: user[:id])
else
[]
end
end
|
.saved_searches_for(user) ⇒ Object
29
30
31
32
33
34
35
|
# File 'lib/atrium.rb', line 29
def saved_searches_for(user)
if user
saved_search_class.where(user_id: user[:id])
else
[]
end
end
|