Sha256: 569b5ecea4b55cf0ebbf4bd1f0edfc77153b506b53a56bf2ee4338688bcacf59

Contents?: true

Size: 593 Bytes

Versions: 12

Compression:

Stored size: 593 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 Hyperloop::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 unless Rails.env.production?

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyper-vis-1.0.1 spec/test_app/app/policies/application_policy.rb
hyper-vis-1.0.0.lap34 spec/test_app/app/policies/application_policy.rb
hyper-vis-1.0.0.lap33 spec/test_app/app/policies/application_policy.rb
hyper-vis-1.0.0.lap32 spec/test_app/app/policies/application_policy.rb
hyper-vis-1.0.0.lap31 spec/test_app/app/policies/application_policy.rb
hyper-vis-1.0.0.lap30 spec/test_app/app/policies/application_policy.rb
hyper-vis-1.0.0.lap29 spec/test_app/app/policies/application_policy.rb
hyper-vis-1.0.0.lap28 spec/test_app/app/policies/application_policy.rb
hyper-vis-1.0.0.lap27 spec/test_app/app/policies/application_policy.rb
hyper-vis-1.0.0.lap26 spec/test_app/app/policies/application_policy.rb
hyper-vis-1.0.0.lap25 spec/test_app/app/policies/application_policy.rb
hyper-vis-1.0.0.lap24 spec/test_app/app/policies/application_policy.rb