Transformed gem to rails engine