Module: Revelry::Content
- Defined in:
- lib/revelry_content.rb,
lib/revelry/content/engine.rb,
lib/revelry/content/version.rb,
app/models/revelry/content/page.rb,
app/controllers/revelry/content/pages_controller.rb,
app/controllers/revelry/content/application_controller.rb
Defined Under Namespace
Modules: ContentsHelper, ControllerAuthorization, WithRevelryContent
Classes: ApplicationController, Configuration, Content, ContentVersion, ContentsController, Engine, JsExporter, Page, PagesController, PseudoContentVersion, Railtie, VersionsController
Constant Summary
collapse
- VERSION =
"1.0.0"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
41
42
43
|
# File 'lib/revelry_content.rb', line 41
def self.config
self._config ||= Configuration.new
end
|
33
34
35
36
37
38
39
|
# File 'lib/revelry_content.rb', line 33
def self.configure(&block)
block.call config
if ActiveRecord::Base.connection.table_exists? 'revelry_content_contents'
Revelry::Content::JsExporter.write_export if config.js_export
end
config
end
|