README.md in embeddable-0.0.1 vs README.md in embeddable-0.0.2
- old
+ new
@@ -19,12 +19,12 @@
$ gem install embeddable
## Usage
-```
+```ruby
# app/models/post.rb
-class Post
+class Post < ActiveRecord::Base
embeddable :video, from: :video_url
end
# ...
post = Post.new video_url: 'http://www.youtube.com/watch?v=bEvNRmPzq9s'