Module: SimpleJson
- Defined in:
- lib/simple_json.rb,
lib/simple_json/json.rb,
lib/simple_json/railtie.rb,
lib/simple_json/version.rb,
lib/simple_json/migratable.rb,
lib/simple_json/simple_json_renderer.rb,
lib/simple_json/simple_json_template.rb,
lib/simple_json/simple_json_renderable.rb,
lib/simple_json/simple_json_renderer_for_migration.rb
Defined Under Namespace
Modules: Json, Migratable, SimpleJsonRenderable
Classes: Railtie, SimpleJsonRenderer, SimpleJsonRendererForMigration, SimpleJsonTemplate
Constant Summary
collapse
- VERSION =
'0.0.0'
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
22
23
24
|
# File 'lib/simple_json.rb', line 22
def config
@config
end
|
.json_module ⇒ Object
53
54
55
|
# File 'lib/simple_json.rb', line 53
def json_module
@json_module ||= config[:default_json_module]
end
|
Class Method Details
.cache_key_prefix ⇒ Object
45
46
47
|
# File 'lib/simple_json.rb', line 45
def cache_key_prefix
config[:cache_key_prefix]
end
|
.cache_key_prefix=(cache_key_prefix) ⇒ Object
49
50
51
|
# File 'lib/simple_json.rb', line 49
def cache_key_prefix=(cache_key_prefix)
config[:cache_key_prefix] = cache_key_prefix
end
|
.disable_template_cache ⇒ Object
.enable_template_cache ⇒ Object
24
25
26
|
# File 'lib/simple_json.rb', line 24
def enable_template_cache
config[:template_cache_enabled] = true
end
|
.template_cache_enabled? ⇒ Boolean
33
34
35
|
# File 'lib/simple_json.rb', line 33
def template_cache_enabled?
config[:template_cache_enabled]
end
|
.template_paths ⇒ Object
37
38
39
|
# File 'lib/simple_json.rb', line 37
def template_paths
config[:template_paths]
end
|
.template_paths=(template_paths) ⇒ Object
41
42
43
|
# File 'lib/simple_json.rb', line 41
def template_paths=(template_paths)
config[:template_paths] = template_paths
end
|