Sha256: 9c5066821a1fcbdfa5ef6b56a5fa812379dd924a315120389f9ab0f41647d5fa

Contents?: true

Size: 437 Bytes

Versions: 3

Compression:

Stored size: 437 Bytes

Contents

ActionView::Template.class_eval do
  alias_method :rails_initialize, :initialize

  def initialize(source, identifier, handler, details)
    source = Deface::Override.apply(source, details)

    rails_initialize(source, identifier, handler, details)
  end
end

#fix for Rails 3.1 not setting virutal_path anymore (BOO!)
if defined?(ActionView::Resolver::Path)
  ActionView::Resolver::Path.class_eval { alias_method :virtual, :to_s }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deface-0.7.0 lib/deface/action_view_extensions.rb
deface-0.6.1 lib/deface/action_view_extensions.rb
deface-0.6.0 lib/deface/action_view_extensions.rb