Sha256: 41b0981d7fcd53b0b790802f35b118777b612c999fc2d3bad0471321fb502f45

Contents?: true

Size: 580 Bytes

Versions: 3

Compression:

Stored size: 580 Bytes

Contents

# app/policies/application_policy

# Policies regulate access to your public models
# The following policy will open up full access (but only in development)
# The policy system is very flexible and powerful.  See the documentation
# for complete details.
class ApplicationPolicy
  # Allow any session to connect:
  always_allow_connection
  # Send all attributes from all public models
  regulate_all_broadcasts { |policy| policy.send_all }
  # Allow all changes to public models
  allow_change(to: :all, on: [:create, :update, :destroy]) { true }
end #if Rails.env.development?

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hyper-mesh-0.6.0 examples/action-cable-production-mode/app/policies/application_policy.rb
hyper-mesh-0.5.4 examples/action-cable-production-mode/app/policies/application_policy.rb
hyper-mesh-0.5.3 examples/action-cable-production-mode/app/policies/application_policy.rb