Sha256: ba71a0830fdbdcf23eefef00ee4bfb118e7dfe1544fa9d7904000db3741027ce
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
require "rails/generators" begin require "generators/serializer/serializer_generator" rescue LoadError # TODO: Make this primary when active_model_serializers 0.9.0 is final require "active_model/serializer/generators/serializer/serializer_generator" end module Rails module Generators SerializerGenerator.class_eval do def create_serializer_file template 'serializer.rb', File.join('config/serializers', class_path, "#{file_name}_serializer.rb") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ember-appkit-rails-0.5.0 | lib/generators/ember/serializer_override.rb |