91ce3b6829f70131c26f526e162f29094578be07
Dunlop::Ember
This gem adds some context and support for connection ember applications
baic assumptions (for now (infrastructure is growing))
- The model structure is non namespaced with
api - The controllers have namespace
Api, not versioned (controller level) api (yet):namespace :api, path: 'api/v1' do # ...api controller definitions... end - The inheritance column for STI models is
sti_typein stead of the inconvenient chosentype:class ApplicationRecord < ActiveRecord::Base self.abstract_class = true self.inheritance_column = :sti_type end - There is a UserSerializer in the main_app, can be same as
Api::Userserializerapp/serializers/user_serializer.rb:class UserSerializer < Api::UserSerializer # attribute :email # attribute :nickname end
Installation
Add this line to your application's Gemfile:
gem 'dunlop-ember'
And then execute:
$ bundle
Add the engine to your routes file
mount Dunlop::Ember::Engine => '/app'
Description
Languages
Ruby
84.1%
Slim
6.7%
HTML
5.4%
JavaScript
2.1%
CSS
1.5%
Other
0.2%