clean-up code
* Remove trailing whitespace * Converts hard-tabs into two-space soft-tabs * Remove consecutive blank lines
This commit is contained in:
parent
f6a67fbad5
commit
d62200cad4
112 changed files with 1408 additions and 1437 deletions
|
@ -13,7 +13,7 @@ class Snippet < ActiveRecord::Base
|
|||
validates :title,
|
||||
:presence => true,
|
||||
:length => { :within => 0..255 }
|
||||
|
||||
|
||||
validates :file_name,
|
||||
:presence => true,
|
||||
:length => { :within => 0..255 }
|
||||
|
@ -22,9 +22,8 @@ class Snippet < ActiveRecord::Base
|
|||
:presence => true,
|
||||
:length => { :within => 0..10000 }
|
||||
|
||||
|
||||
def self.content_types
|
||||
[
|
||||
[
|
||||
".rb", ".py", ".pl", ".scala", ".c", ".cpp", ".java",
|
||||
".haml", ".html", ".sass", ".scss", ".xml", ".php", ".erb",
|
||||
".js", ".sh", ".coffee", ".yml", ".md"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue