0.0
No commit activity in last 3 years
No release in over 3 years
Now you can reopen blocks and add additional fields
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.9.1
 Project Readme

JbuilderReopen

Installation

gem 'jbuilder_reopen'

Usage

To opmtimise cache, now you can reopen blocks and add additional fields

Examples:

json.cache! "cache-key" do
  json.posts @posts, partial: "post", as: :post
end
json.reopen! ["posts"] do |post|
  json.title post["body"]
  json.reopen! ["author"] do |author|
    json.middle_name author["first_name"]
  end
end

Testing

bundle install
appraisal install
appraisal rake test

Credit

Thank you! https://github.com/rails/jbuilder