Sha256: 68d0fac1f7c724eb9dd699bf3439d85e73f2218f3d17720da35f5582e7726876

Contents?: true

Size: 256 Bytes

Versions: 3

Compression:

Stored size: 256 Bytes

Contents

require 'active_model/serializer/reflection'

module ActiveModel
  class Serializer
    class Reflection < Field
      prepend ActiveModel::Serializer::CanCan::ReflectionValue

      def authorize?
        !!options[:authorize]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_model_serializers_cancancan-0.5.0 lib/active_model_serializers/cancan/associations.rb
active_model_serializers_cancancan-0.4.0 lib/active_model_serializers/cancan/associations.rb
active_model_serializers_cancancan-0.3.0 lib/active_model_serializers/cancan/associations.rb