Schema Information
Table name: snippets
id :integer not null, primary key title :string(255) content :text author_id :integer not null project_id :integer not null created_at :datetime not null updated_at :datetime not null file_name :string(255) expires_at :datetime
Methods
Included Modules
- Linguist::BlobHelper
Class Public methods
content_types()
Link
Source: show
# File app/models/snippet.rb, line 38 def self.content_types [ ".rb", ".py", ".pl", ".scala", ".c", ".cpp", ".java", ".haml", ".html", ".sass", ".scss", ".xml", ".php", ".erb", ".js", ".sh", ".coffee", ".yml", ".md" ] end
Instance Public methods