Class: Jbuilder
- Inherits:
-
Object
- Object
- Jbuilder
- Defined in:
- lib/jbuilder-prettify.rb
Class Attribute Summary collapse
-
.prettify ⇒ Object
Returns the value of attribute prettify.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.prettify ⇒ Object
Returns the value of attribute prettify.
6 7 8 |
# File 'lib/jbuilder-prettify.rb', line 6 def prettify @prettify end |
Class Method Details
.prettify? ⇒ Boolean
8 9 10 11 12 13 14 |
# File 'lib/jbuilder-prettify.rb', line 8 def prettify? return @prettify unless @prettify.nil? return ::Rails.configuration.jbuilder.prettify if defined?(::Rails) false end |
Instance Method Details
#_original_target ⇒ Object
17 |
# File 'lib/jbuilder-prettify.rb', line 17 alias_method :_original_target, :target! |