Sha256: e5b6e7a2104b6217c63bb108b0437c999db8f0ecfe434b8fc8b8cdcdd9552494

Contents?: true

Size: 491 Bytes

Versions: 14

Compression:

Stored size: 491 Bytes

Contents

require 'active_support/concern'
module KonoUtils

  module BaseEditingPolicyConcern
    extend ActiveSupport::Concern

    included do
      def permitted_attributes
        # [:descrizione]
        record.class.column_names.collect { |s| s.to_sym } - [:id, :created_at, :updated_at]
      end
    end

    if defined? ::Application::Scope
      class Scope < ::Application::Scope
        def resolve
          scope
        end
      end
    end

#  module ClassMethods

#  end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kono_utils-1.0.1 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-1.0.0 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.16 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.15 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.14 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.13 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.12 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.11 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.10 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.9 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.8 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.7 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.6 app/policies/kono_utils/base_editing_policy_concern.rb
kono_utils-0.15.5 app/policies/kono_utils/base_editing_policy_concern.rb