Sha256: ba3a319bf11fa7b03d318f28b34a6f8da824822f2dd7ddf8b19b6a08e91dda7f

Contents?: true

Size: 248 Bytes

Versions: 17

Compression:

Stored size: 248 Bytes

Contents

class SchemaSerializer
  class Railtie < ::Rails::Railtie
    initializer "schema_serializer" do
      ActiveSupport.on_load(:active_record) do
        ::ActiveRecord::Base.send(:include, SchemaSerializer::Serializable)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
schema_serializer-0.2.4 lib/schema_serializer/railtie.rb
schema_serializer-0.2.3 lib/schema_serializer/railtie.rb
schema_serializer-0.2.2 lib/schema_serializer/railtie.rb
schema_serializer-0.2.1 lib/schema_serializer/railtie.rb
schema_serializer-0.2.0 lib/schema_serializer/railtie.rb
schema_serializer-0.1.3 lib/schema_serializer/railtie.rb
schema_serializer-0.1.2 lib/schema_serializer/railtie.rb
schema_serializer-0.1.1 lib/schema_serializer/railtie.rb
schema_serializer-0.1.0 lib/schema_serializer/railtie.rb
schema_serializer-0.0.10 lib/schema_serializer/railtie.rb
schema_serializer-0.0.9 lib/schema_serializer/railtie.rb
schema_serializer-0.0.8 lib/schema_serializer/railtie.rb
schema_serializer-0.0.7 lib/schema_serializer/railtie.rb
schema_serializer-0.0.6 lib/schema_serializer/railtie.rb
schema_serializer-0.0.5 lib/schema_serializer/railtie.rb
schema_serializer-0.0.4 lib/schema_serializer/railtie.rb
schema_serializer-0.0.3 lib/schema_serializer/railtie.rb