没有合适的资源?快使用搜索试试~ 我知道了~
state_machines-activerecord:StateMachines活动记录集成
共70个文件
rb:55个
gemfile:6个
yml:2个
需积分: 8 0 下载量 66 浏览量
2021-05-13
16:13:01
上传
评论
收藏 49KB ZIP 举报
温馨提示
StateMachines活动记录集成 Active Record 5.1+集成增加了对数据库事务的支持,自动保存了记录,命名范围,验证错误。 安装 将此行添加到您的应用程序的Gemfile中: gem 'state_machines-activerecord' 然后执行: $ bundle 或将其自己安装为: $ gem install state_machines-activerecord 用法 有关完整的用法指南,请参见 例子 class Vehicle < ActiveRecord xss=removed> :parked do before_transition :parked => any - :parked , :do => :put_on_seatbelt after_transition any =>
资源推荐
资源详情
资源评论
收起资源包目录
state_machines-activerecord-master.zip (70个子文件)
state_machines-activerecord-master
.gitignore 185B
gemfiles
active_record_6.0.gemfile 277B
active_record_5.1.gemfile 277B
active_record_5.2.gemfile 277B
active_record_6.1.gemfile 277B
active_record_edge.gemfile 361B
log
.gitkeep 0B
LICENSE.txt 1KB
.github
workflows
ruby.yml 2KB
state_machines-activerecord.gemspec 1KB
README.md 3KB
lib
state_machines
integrations
active_record.rb 20KB
active_record
locale.rb 396B
version.rb 109B
state_machines-activerecord.rb 215B
Appraisals 1017B
Gemfile 80B
Rakefile 169B
test
integration_test.rb 905B
machine_with_callbacks_test.rb 5KB
machine_with_different_integer_column_default_test.rb 830B
model_test.rb 369B
machine_with_scopes_test.rb 2KB
machine_with_failed_action_test.rb 1KB
machine_with_dirty_attributes_during_loopback_test.rb 587B
machine_with_failed_before_callbacks_test.rb 1KB
machine_with_loopback_test.rb 595B
machine_with_state_driven_validations_test.rb 852B
machine_with_event_attributes_on_save_test.rb 6KB
machine_with_non_column_state_attribute_defined_test.rb 800B
machine_with_scopes_and_owner_subclass_test.rb 912B
machine_with_failed_after_callbacks_test.rb 1017B
machine_with_conflicting_state_name_test.rb 837B
machine_without_database_test.rb 455B
machine_nested_action_test.rb 900B
machine_with_dirty_attribute_and_state_events_test.rb 498B
machine_with_validations_test.rb 1KB
machine_with_event_attributes_on_validation_test.rb 3KB
machine_by_default_test.rb 344B
machine_with_same_column_default_test.rb 651B
machine_with_validations_and_custom_attribute_test.rb 525B
machine_with_transactions_test.rb 557B
machine_unmigrated_test.rb 373B
machine_with_aliased_attribute_test.rb 538B
machine_with_dirty_attribute_and_custom_attributes_during_loopback_test.rb 683B
machine_with_different_column_default_test.rb 795B
machine_with_scopes_and_joins_test.rb 1KB
machine_with_event_attributes_on_autosave_test.rb 1KB
machine_errors_test.rb 576B
machine_with_dirty_attributes_and_custom_attribute_test.rb 973B
machine_with_default_scope_test.rb 436B
machine_with_event_attributes_on_custom_action_test.rb 922B
files
en.yml 95B
models
post.rb 212B
machine_with_event_attributes_on_save_bang_test.rb 2KB
test_helper.rb 2KB
machine_with_complex_pluralization_scopes_test.rb 391B
machine_multiple_test.rb 509B
machine_with_dynamic_initial_state_test.rb 2KB
machine_with_conflicting_predicate_test.rb 350B
machine_with_same_integer_column_default_test.rb 709B
machine_with_column_state_attribute_test.rb 1KB
machine_with_events_test.rb 304B
machine_with_internationalization_test.rb 6KB
machine_with_states_test.rb 310B
machine_with_static_initial_state_test.rb 5KB
machine_with_custom_attribute_test.rb 519B
machine_with_dirty_attributes_test.rb 1007B
machine_without_transactions_test.rb 565B
machine_with_initialized_state_test.rb 1KB
共 70 条
- 1
资源评论
苏咔咔
- 粉丝: 26
- 资源: 4706
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 驱动代码驱动代码驱动代码驱动代码
- SVID_20240523_141155_1.mp4
- Code for the complete guide to tkinter tutorial
- 关于百货中心供应链管理系统.zip
- SimpleFolderIcon-master 修改Unity的Project下的文件夹图标
- A python Tkinter widget to display tile based maps
- A pure Python library for adding tables to a Tkinter application
- Vector资源文件.zip
- MobaXterm-Installer
- 88-520告白(520气球).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功