1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

don't repeat yourself

This commit is contained in:
Thorsten Böttger 2013-05-03 23:48:12 +02:00
parent b3bd8f9275
commit 97f898e674

View file

@ -1,17 +1,18 @@
require 'ostruct' require 'ostruct'
# TODO shorten this [thorsten, 2011-12-20] %w(
require File.join(File.dirname(__FILE__), 'aasm', 'version') version
require File.join(File.dirname(__FILE__), 'aasm', 'errors') errors
require File.join(File.dirname(__FILE__), 'aasm', 'base') base
require File.join(File.dirname(__FILE__), 'aasm', 'instance_base') instance_base
require File.join(File.dirname(__FILE__), 'aasm', 'transition') transition
require File.join(File.dirname(__FILE__), 'aasm', 'event') event
require File.join(File.dirname(__FILE__), 'aasm', 'state') state
require File.join(File.dirname(__FILE__), 'aasm', 'localizer') localizer
require File.join(File.dirname(__FILE__), 'aasm', 'state_machine') state_machine
require File.join(File.dirname(__FILE__), 'aasm', 'persistence') persistence
require File.join(File.dirname(__FILE__), 'aasm', 'aasm') aasm
).each { |file| require File.join(File.dirname(__FILE__), 'aasm', file) }
# load the deprecated methods and modules # load the deprecated methods and modules
Dir[File.join(File.dirname(__FILE__), 'aasm', 'deprecated', '*.rb')].sort.each { |f| require File.expand_path(f) } Dir[File.join(File.dirname(__FILE__), 'aasm', 'deprecated', '*.rb')].sort.each { |f| require File.expand_path(f) }