Permalink
Browse files

VERSION 0.0.1: includes Basic Rails Integration

  • Loading branch information...
1 parent ef726a5 commit e44a6900ec15228147c40cd5aec073500c7f74f2 @moonmaster9000 committed Apr 30, 2012
Showing with 6 additions and 5 deletions.
  1. +2 −0 .gitignore
  2. +1 −1 VERSION
  3. +2 −3 readme.markdown
  4. +1 −1 test_frill_rails/Gemfile.lock
View
@@ -0,0 +1,2 @@
+*.swp
+*.gem
View
@@ -1 +1 @@
-0.0.0
+0.0.1
View
@@ -37,8 +37,7 @@ module TimestampFrill
end
def created_at
- time = super
- "#{time.year}/#{time.month}/#{time.day}"
+ super.strftime "%Y/%m/%d"
end
end
```
@@ -55,7 +54,7 @@ module HtmlTimestampFrill
after TimestampFrill
def self.frill? object, context
- object.respond_to?(:created_at) && context.format == "html"
+ object.respond_to?(:created_at) && context.request.format == "text/html"
end
def created_at
@@ -1,7 +1,7 @@
PATH
remote: ../
specs:
- frill (0.0.0)
+ frill (0.0.1)
GEM
remote: https://rubygems.org/

0 comments on commit e44a690

Please sign in to comment.