Sha256: 3879028e8e1b19327435d1bba394d1ee136f08008fab2f010b73e6a101d8b0bc

Contents?: true

Size: 491 Bytes

Versions: 9

Compression:

Stored size: 491 Bytes

Contents

# Not used at the moment
#
# Extends a standard ActionView::Base view with methods
# needed by the view models.
#
module ViewModels
  module Extensions
    module View
      
      #
      #
      def render_with options
        render options.to_render_options
      end

      # Finds the template in the view paths at the given path, with its format.
      #
      def find_template path
        view_paths.find_template path, template_format rescue nil
      end
      
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
view_models-2.0.1 lib/rails2/lib/extensions/view.rb
view_models-2.0.0.ruby19 lib/rails2/lib/extensions/view.rb
view_models-2.0.0 lib/rails2/lib/extensions/view.rb
view_models-1.5.7 lib/extensions/view.rb
view_models-1.5.6 lib/extensions/view.rb
view_models-1.5.5 lib/extensions/view.rb
view_models-1.5.4 lib/extensions/view.rb
view_models-1.5.3 lib/extensions/view.rb
view_models-1.5.2 lib/extensions/view.rb