Sha256: 86c7eccb0ac3c6953c9f40a71ee5c88c2a2fe709a99431de24a934a6bd4c1653

Contents?: true

Size: 226 Bytes

Versions: 35

Compression:

Stored size: 226 Bytes

Contents

# frozen_string_literal: true

module LinkedRails
  module Actions
    class ObjectPolicy < LinkedRails.policy_parent_class
      def show?
        parent_policy.blank? ? true : parent_policy.show?
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
linked_rails-0.0.4.pre.g4c8e21c9f app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.g76dedd8ba app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.g7123943aa app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.g72bb595fe app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.gd8464437f app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.g661cde413 app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.ge09501794 app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.gc3dfc6914 app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.g92825d924 app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.g14b377f91 app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.g2c53724b3 app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.g83aa52ab3 app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.gaa82a222d app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.g9b7bc9073 app/policies/linked_rails/actions/object_policy.rb
linked_rails-0.0.4.pre.ge1306665a app/policies/linked_rails/actions/object_policy.rb