Module: Spotlight
- Defined in:
- lib/spotlight.rb,
lib/spotlight/engine.rb,
lib/spotlight/version.rb,
lib/spotlight/search_state.rb,
lib/spotlight/riiif_service.rb,
lib/spotlight/upload_field_config.rb,
lib/generators/spotlight/install_generator.rb,
lib/generators/spotlight/scaffold_resource_generator.rb
Overview
Defined Under Namespace
Modules: RiiifService
Classes: Engine, Install, ScaffoldResource, SearchState, UploadFieldConfig
Constant Summary
collapse
- VERSION =
'4.5.0'
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.deprecator ⇒ Object
9
10
11
|
# File 'lib/spotlight.rb', line 9
def self.deprecator
@deprecator ||= ActiveSupport::Deprecation.new('5.0', 'blacklight-spotlight')
end
|
Instance Method Details
#create_routes ⇒ Object
56
57
58
59
60
61
62
63
|
# File 'lib/generators/spotlight/scaffold_resource_generator.rb', line 56
def create_routes
route <<~FILE
resources :exhibits, only: [] do
resources :#{file_name}_resources, only: [:create, :update] do
end
end
FILE
end
|
#inject_configuration ⇒ Object
50
51
52
53
54
|
# File 'lib/generators/spotlight/scaffold_resource_generator.rb', line 50
def inject_configuration
inject_into_file 'config/initializers/spotlight_initializer.rb' do
"\n Spotlight::Engine.config.external_resources_partials += ['#{file_name}_resources/form']\n"
end
end
|