So, I think this should be:

```ruby
alias :old_resourceful? :resourceful?

def resourceful?
  if resource.is_a?(Crichton::Representor)
    http_accept = request.env['HTTP_ACCEPT'] 
    options.merge!(semantics: :styled_microdata) if http_accept && http_accept.include?('text/html')
    true
  else
    old_resourceful?
  end
end
```