Class | PagePartial |
In: |
app/models/page_partial.rb
|
Parent: | DynamicView |
# File app/models/page_partial.rb, line 11 11: def self.display_name(file_name) 12: name, format, handler = file_name.split('.') 13: "#{name.sub(/^_/,'').titleize} (#{format}/#{handler})" 14: end
# File app/models/page_partial.rb, line 7 7: def file_path 8: File.join(self.class.base_path, "partials", file_name) 9: end