Sha256: 112064c0ac6555612d3325e2d0133416675d8dfc76ab9b319f09964ef04d84d7

Contents?: true

Size: 390 Bytes

Versions: 5

Compression:

Stored size: 390 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!)
ActionView::Resolver::Path.class_eval { alias_method :virtual, :to_s }

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
deface-0.5.7 lib/deface/action_view_extensions.rb
deface-0.5.6 lib/deface/action_view_extensions.rb
deface-0.5.5 lib/deface/action_view_extensions.rb
deface-0.5.4 lib/deface/action_view_extensions.rb
deface-0.5.3 lib/deface/action_view_extensions.rb