Module: OpenStax::Utilities::Helpers::Partials
- Defined in:
- lib/openstax/utilities/helpers/partials.rb
Instance Method Summary collapse
Instance Method Details
#block_to_partial(partial_name, options = {}, &block) ⇒ Object
4 5 6 7 |
# File 'lib/openstax/utilities/helpers/partials.rb', line 4 def block_to_partial(partial_name, ={}, &block) .merge!(:body => true_self.capture(&block)) render(:partial => partial_name, :locals => ) end |