Sha256: 95578fd5366bd9c6972db73f89153595c64783b0f013900141bc87349340eb47
Contents?: true
Size: 550 Bytes
Versions: 2
Compression:
Stored size: 550 Bytes
Contents
module ResourceController module Helpers module Views protected # True if the named partial is found without falling back to the scaffold_root. def has_own_partial?(name) view_paths.find_template("_#{name}", default_template_format) != nil rescue ActionView::MissingTemplate return false end # Returns the options hash passed to the resource_controller declaration. def resource_controller_options self.class.resource_controller_options end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
resource_controller_views-0.6.6.views2 | lib/resource_controller/helpers/views.rb |
resource_controller_views-0.6.6 | lib/resource_controller/helpers/views.rb |