Sha256: 7cf3270c0cda97985382678c3797a60eda946ee5240f5c57b7e8b8d1c1a64acf
Contents?: true
Size: 633 Bytes
Versions: 2
Compression:
Stored size: 633 Bytes
Contents
module ActionView class Base alias_method :__render_file, :render_file def render_file(template_path, use_full_path = true, local_assigns = {}) if use_full_path begin theme_path = "../../themes/#{controller.current_theme}/views/#{template_path}" template_extension = pick_template_extension(theme_path) __render_file(theme_path, use_full_path, local_assigns) rescue => err __render_file(template_path, use_full_path, local_assigns) end else __render_file(template_path, use_full_path, local_assigns) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
theme_generator-1.1.0 | templates/actionview_ex.rb |
theme_generator-1.1.1 | templates/actionview_ex.rb |