Sha256: a5d25b8419b2af94fe9a39411ea5b960902cd26f11dbcc7dba1e44301d9cb143

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

module SuperScaffoldingHelper
  unless defined?(BulletTrain::ActionModels)
    # action_model_select_controller is originally a method
    # in the Action Models package, but we can't simply
    # remove this method from Super Scaffolded index partials
    # when the package isn't present. Since we keep
    # action_model_select_controller in our views, we need
    # this method so we don't get a NoMethodError.
    def action_model_select_controller
      yield
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bullet_train-super_scaffolding-1.2.4 app/helpers/super_scaffolding_helper.rb
bullet_train-super_scaffolding-1.2.3 app/helpers/super_scaffolding_helper.rb
bullet_train-super_scaffolding-1.2.2 app/helpers/super_scaffolding_helper.rb
bullet_train-super_scaffolding-1.2.1 app/helpers/super_scaffolding_helper.rb
bullet_train-super_scaffolding-1.2.0 app/helpers/super_scaffolding_helper.rb