Module: SolidusContent
- Defined in:
- lib/solidus_content/providers/raw.rb,
lib/solidus_content/engine.rb,
lib/solidus_content/version.rb,
lib/solidus_content/providers.rb,
lib/solidus_content/active_record.rb,
lib/solidus_content/configuration.rb,
lib/solidus_content/providers/json.rb,
lib/solidus_content/providers/yaml.rb,
lib/solidus_content/providers/prismic.rb,
lib/solidus_content/providers/contentful.rb,
app/models/solidus_content/provider/fields.rb,
app/controllers/solidus_content/resource_controller.rb,
lib/solidus_content/providers/solidus_static_content.rb,
lib/generators/solidus_content/install/install_generator.rb
Overview
Let the content come from the entry itself.
Defined Under Namespace
Modules: Generators, Provider, Providers
Classes: ApplicationRecord, Configuration, Engine, Entry, EntryType, ResourceController
Constant Summary
collapse
- VERSION =
'0.1.0'
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
31
32
33
|
# File 'lib/solidus_content/configuration.rb', line 31
def self.config
@config ||= Configuration.new
end
|
35
36
37
|
# File 'lib/solidus_content/configuration.rb', line 35
def self.configure
yield config
end
|
.human_provider_name(name) ⇒ Object
12
13
14
|
# File 'lib/solidus_content/providers.rb', line 12
def self.human_provider_name(name)
I18n.t("solidus_content.providers.#{name}")
end
|
.provider_names ⇒ Object
8
9
10
|
# File 'lib/solidus_content/providers.rb', line 8
def self.provider_names
SolidusContent.config.providers.keys
end
|
.table_name_prefix ⇒ Object
4
5
6
|
# File 'lib/solidus_content/active_record.rb', line 4
def self.table_name_prefix
'solidus_content_'
end
|