Class: RailsAsyncMigrations::Migration::Unlock
- Inherits:
-
Object
- Object
- RailsAsyncMigrations::Migration::Unlock
- Defined in:
- lib/rails_async_migrations/migration/unlock.rb
Instance Attribute Summary collapse
-
#method_name ⇒ Object
readonly
Returns the value of attribute method_name.
-
#resource_class ⇒ Object
readonly
Returns the value of attribute resource_class.
Instance Method Summary collapse
-
#initialize(resource_class, method_name) ⇒ Unlock
constructor
A new instance of Unlock.
- #perform ⇒ Object
Constructor Details
#initialize(resource_class, method_name) ⇒ Unlock
Returns a new instance of Unlock.
6 7 8 9 |
# File 'lib/rails_async_migrations/migration/unlock.rb', line 6 def initialize(resource_class, method_name) @resource_class = resource_class @method_name = method_name end |
Instance Attribute Details
#method_name ⇒ Object (readonly)
Returns the value of attribute method_name.
4 5 6 |
# File 'lib/rails_async_migrations/migration/unlock.rb', line 4 def method_name @method_name end |
#resource_class ⇒ Object (readonly)
Returns the value of attribute resource_class.
4 5 6 |
# File 'lib/rails_async_migrations/migration/unlock.rb', line 4 def resource_class @resource_class end |
Instance Method Details
#perform ⇒ Object
11 12 13 |
# File 'lib/rails_async_migrations/migration/unlock.rb', line 11 def perform restore_original_method end |