Sha256: 7ce5a2c1a30c58d7eeb72d90a593a4705e447d2b9834c85e73c57883e7fc2093

Contents?: true

Size: 200 Bytes

Versions: 16

Compression:

Stored size: 200 Bytes

Contents

module Formstrap
  module Placeholderable
    extend ActiveSupport::Concern

    included do
      def placeholder
        float ? @placeholder || attribute : @placeholder
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
formstrap-0.4.5 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.4.4 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.4.3 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.4.2 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.3.5 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.3.4 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.3.3 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.3.2 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.3.1 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.3.0 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.2.1 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.2.0 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.1.3 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.1.2 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.1.1 app/models/concerns/formstrap/placeholderable.rb
formstrap-0.1.0 app/models/concerns/formstrap/placeholderable.rb