Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # app/models/post.rb
- class Post < ActiveRecord::Base
- html_schema_type :BlogPosting
- end
- Post.html_schema_type # => Mida::SchemaOrg::BlogPosting
- Post.new.html_schema_type # => Mida::SchemaOrg::BlogPosting
Add Comment
Please, Sign In to add comment