Sha256: 2ae5529364d4a438f0eb2c0f00d5ba6cf0a71c2c5f02e063c6ecdf78b0a5c2f7

Contents?: true

Size: 725 Bytes

Versions: 20

Compression:

Stored size: 725 Bytes

Contents

unless ActionView.const_defined?(:Template)
  ActionView::Base.class_eval do
    attr_reader :template_file_path
    def render_template_with_saving_file_path(template_extension, template, file_path = nil, local_assigns = {})
      @template_file_path = file_path
      render_template_without_saving_file_path(template_extension, template, file_path, local_assigns)
    end
    alias_method_chain :render_template, :saving_file_path

    def render_partial_with_notification(*args, &blk)
      @is_partial_template = true
      render_partial_without_notification(*args, &blk)
    end
    alias_method_chain :render_partial, :notification

    def is_partial_template?
      @is_partial_template || false
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
pivotal-erector-0.5.1 lib/erector/rails/extensions/action_view.rb
pivotal-erector-0.6.0 lib/erector/rails/extensions/action_view.rb
pivotal-erector-0.6.1 lib/erector/rails/extensions/action_view.rb
pivotal-erector-0.6.2 lib/erector/rails/extensions/action_view.rb
pivotal-erector-0.6.3 lib/erector/rails/extensions/action_view.rb
pivotal-erector-0.6.4 lib/erector/rails/extensions/action_view.rb
pivotal-erector-0.6.5 lib/erector/rails/extensions/action_view.rb
pivotal-erector-0.6.6 lib/erector/rails/extensions/action_view.rb
pivotal-erector-0.6.7 lib/erector/rails/extensions/action_view.rb
pivotal-erector-0.7.0 lib/erector/rails/extensions/action_view.rb
erector-0.7.1 lib/erector/rails/extensions/action_view.rb
erector-0.7.0 lib/erector/rails/extensions/action_view.rb
erector-0.6.7 lib/erector/rails/extensions/action_view.rb
erector-0.6.3 lib/erector/rails/extensions/action_view.rb
erector-0.6.6 lib/erector/rails/extensions/action_view.rb
erector-0.6.4 lib/erector/rails/extensions/action_view.rb
erector-0.5.0 lib/erector/rails/extensions/action_view.rb
erector-0.5.1 lib/erector/rails/extensions/action_view.rb
erector-0.4.191 lib/erector/rails/extensions/action_view.rb
erector-0.4.200 lib/erector/rails/extensions/action_view.rb