Sha256: deba422c7c0592c8aac519042b35529c44a6edacaa19368d0e54ef3862215394

Contents?: true

Size: 161 Bytes

Versions: 6

Compression:

Stored size: 161 Bytes

Contents

class ActiveRecord::Base
  [:view, :create, :update, :destroy].each do |access|
    define_method("#{access}_permitted?".to_sym) { |attr = nil| true }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hyper-mesh-0.6.0 reactive_record_test_app/config/initializers/hyper_mesh_legacy_behavior.rb
hyper-mesh-0.5.4 reactive_record_test_app/config/initializers/hyper_mesh_legacy_behavior.rb
hyper-mesh-0.5.3 reactive_record_test_app/config/initializers/hyper_mesh_legacy_behavior.rb
hyper-mesh-0.5.2 reactive_record_test_app/config/initializers/hyper_mesh_legacy_behavior.rb
hyper-mesh-0.5.1 reactive_record_test_app/config/initializers/hyper_mesh_legacy_behavior.rb
hyper-mesh-0.5.0 reactive_record_test_app/config/initializers/hyper_mesh_legacy_behavior.rb