two fixes for ruby 1.9.2
This commit is contained in:
parent
5fce216346
commit
4c8a70e370
2
Rakefile
2
Rakefile
|
@ -1,4 +1,4 @@
|
|||
$LOAD_PATH << File.expand_path(__FILE__) + '/'
|
||||
$LOAD_PATH << File.expand_path(File.dirname(__FILE__)) + '/'
|
||||
require 'libs'
|
||||
|
||||
require 'dm-migrations'
|
||||
|
|
|
@ -4,7 +4,7 @@ class Post
|
|||
|
||||
property :id, Serial
|
||||
property :title, Text, :required => true
|
||||
property :written, Time, :default => lambda { Time.now }
|
||||
property :written, Time, :default => (lambda { Time.now })
|
||||
property :released, Boolean, :default => false
|
||||
property :markup, Text, :default => 'textile'
|
||||
property :content, Text
|
||||
|
|
Loading…
Reference in New Issue